I am using swagger-ui-express npm package.I am trying implicit flow from my express application and i amsuccessful in performing authentication and redirection back from auth0 ( my authentication service)
only works when i am serving my swagger file at / path
example app.use("/",swaggerUI.serve,swaggerUi.setup(swaggerJsDocs)
The issue is i want to serve my swaggerUi at /api-docs' path and somehow redirection fails on this path. Tried adding swagger options, it redirects to /api-docs` without any authentication code.
swaggerOptions = {
aith2RedirectUrl:'https://localhost:400/api-docs'
}
UPDATE:- Swagger UI uses oauth2-redirect.html which is boudn with / only, is it possible to bound or redirect it to /api-docs