C
C#5mo 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
Mee65mo 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
Chakravarthy5mo 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
Mee65mo ago
That's a good way to think about this, yes - you're right. However we are kinda dependant on swagger for testing purposes