We are using Auth0 with Swagger, and using the Swagger UI for testing. The UI is broken since implementing Auth0.
The securityDefinition in our swagger file looks like this:
securityDefinitions: xx: type: oauth2 flow: implicit authorizationUrl: https://<domain>.auth0.com/authorize x-tokenInfoFunc: someFunc
Bringing up the Swagger UI displays an Authorize button, and clicking on it goes to this URL:
Oops!, somthing went wrong
Looking at the URL, the realm and client id are clearly incorrect - these values are “your-realms” and “your-client-id”. How do these values get set? Adding ?client_id to the authorizationUrl results in another failure: the URL now has two query components, e.g. ?client_id= and the previous query component.
Swagger is a common use case, yet I don’t see anything in the documentation or Community that this works. Does anybody else have experience with this?