My application's UI authenticates with Auth0 and sends a JWT with each request to my server in the Authorization header.
How do I achieve this behavior with swagger ui? I am hosting my Swagger UI using the swagger-ui-express node.js module.
I am able to get Swagger UI to authenticate with Auth0 using the following security definition:
And swagger even passes a value in the Authorization (bearer) header of my requests.. But, the bearer token does not appear to be a JWT, which my server is expecting.
@kbcb, are you sure your Auth0 instance is configured to hand back an Access Token as a JWT?
Swagger UI just uses token that it is given by the tokenUrl, so this is probably an issue with your auth provider.