C
C#11mo ago
Mee6

Is there a way to authenticate using OAuth2 token and map it to internal JWT

Basically, my server checks for some stuff by utilizing OAuth2 token and returns JWT Im looking for a way to connect that flow to Swagger - as in: Authorize button -> OAuth2 authenticate -> send that token to our own service for our jwt
3 Replies
Mee6
Mee6OP11mo ago
Or maybe just a way to force Swagger to post the token to the endpoint, so we can manually: Authorize Oauth2 -> send a request to an endpoint and grab JWT -> Authorize JWT
Chakravarthy
Chakravarthy11mo ago
rather commenting on the point of auth token, I wanted to clear a point. Swagger is just a UI component to make things visible in a decent way, but not the best way. Thus, request you to ignore the Swagger and think like a provider and consumer .. whereas provider being the API and the consumer being the calling application ..
Mee6
Mee6OP11mo ago
That's a good way to think about this, yes - you're right. However we are kinda dependant on swagger for testing purposes
Want results from more Discord servers?
Add your server