Contributions
- 5.1KViews0likes4Comments
OAuth via Auth0 with a JWT
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: securityDefinitions: auth0: type: oauth2 flow: authorizationCode authorizationUrl: https://XXX.auth0.com/authorize tokenUrl: https://XXX.auth0.com/oauth/token scopes: {} 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.5.5KViews1like10Comments