Skip to content

How to swap authentication types #375

Answered by Tratcher
divinebovine asked this question in General
Discussion options

You must be logged in to vote

Honestly we haven't designed that flow yet, we're waiting for feedback on what people need.

For your flow:
Step 1) Have you been through the auth docs to enforce cookie auth for the incoming requests?
Step 2) You would probobly write a proxy middleware to:

  • take the authenticated user info, (e.g. HttpContext.AuthenticateAsync(scheme))
  • generate a JWT, (IdentityModel?)
  • and add it to the request, probably by directly setting the auth header.

As JWTs are signed, you also have the question for how to share those signing keys with the destination server.

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@divinebovine
Comment options

Answer selected by divinebovine
Comment options

You must be logged in to vote
6 replies
@divinebovine
Comment options

@Tratcher
Comment options

@divinebovine
Comment options

@Tratcher
Comment options

@divinebovine
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants