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