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

Added RedirectUrl into swagger.go to enable custom redirect URL #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

leungas
Copy link

@leungas leungas commented Nov 25, 2021

Describe the PR
Currently echo-swagger assumes the Redirect URL used in OAuth2 process flow is at the root. Thus in the case of when Swagger UI is not root, the redirection would not work and result in 404 Not Found returned. This PR will enable a new parameter RedirectUrl parameter and can be used along with the EchoWrapHandler so it can overwritten if necessary.

Relation issue
None - new feature

Additional context
If the RedirectURL parameter is not set, it will simply take the existing echo-swagger functions.

swagger.go Outdated Show resolved Hide resolved
swagger.go Outdated Show resolved Hide resolved
@leungas
Copy link
Author

leungas commented Nov 27, 2021

Just update the changes as mentioned above.

@ubogdan
Copy link
Contributor

ubogdan commented Dec 24, 2021

Would you please fix the code and resolve conflicts to go forward with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants