swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Oauth2 flow

Open Fjandin opened this issue 9 years ago • 3 comments

Not sure i'm misunderstanding something but i did setup swagger ui with oauth2 implicit. But the redirect uri seems to be hardcoded to http://localhost:3200/. Any way to change this?

Fjandin avatar Nov 13 '17 22:11 Fjandin

Check oauth2RedirectUrl under https://github.com/swagger-api/swagger-ui#parameters.

webron avatar Nov 13 '17 22:11 webron

Hi @Fjandin!

There's an oauth2RedirectUrl configuration option that you can set. Documentation is here: https://github.com/swagger-api/swagger-ui#parameters.

shockey avatar Nov 13 '17 22:11 shockey

Ah! Missed that one. Works perfectly. Thanks :)

Fjandin avatar Nov 15 '17 09:11 Fjandin