Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
oauth2 redirection fail in openapi3.0/swagger UI

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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!