Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to override redirectUrl in swagger-oauth #457

Closed
radzserg opened this issue Apr 25, 2014 · 2 comments
Closed

Ability to override redirectUrl in swagger-oauth #457

radzserg opened this issue Apr 25, 2014 · 2 comments
Milestone

Comments

@radzserg
Copy link

I found hardcoded link in swagger-oauth

var redirectUrl = host.protocol + '//' + host.host + "/o2c.html";

Could you move this to settings?

@fehguy
Copy link
Contributor

fehguy commented May 14, 2014

yes, marking this as a feature. this should be in settings as well.

@fehguy fehguy added the Feature label May 14, 2014
@victorsmirnov
Copy link

I believe this is not a feature but a bug. Because o2c.html is not always located in the root folder.

Quick and dirty fix might be the following. We assume that o2c.html is in the same location as index.html. This is not always valid but might be a little better than completely ignoring the path.

var redirectUrl = host.protocol + '//' + host.host + host.pathname + "o2c.html";

@fehguy fehguy added this to the v2.1.0-M2 milestone Jan 28, 2015
mohsen1 added a commit to mohsen1/swagger-ui that referenced this issue Mar 24, 2015
@mohsen1 mohsen1 closed this as completed Mar 24, 2015
Jonahss pushed a commit to eaze/swagger-ui that referenced this issue Aug 12, 2016
vincent-zurczak pushed a commit to roboconf/swagger-ui that referenced this issue Aug 18, 2016
JuanSW18 pushed a commit to Digital-Paw/digital-paw-swagger-ui that referenced this issue Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants