Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add oauth2 redirect handler route. The oauth2-redirect.html file is copied from
master
branch, with a little addition that accepts both snake case and camel cases flow name from oauth2 servers.With this commit, swagger editor
next
can finally work with openId/oauth2 authorization_code workflow.Motivation and Context
The swagger editor just don't handle oauth2/openIdConnect callback when using authorization_code workflow. It just complains that 404 not found.
The same configuration works in the
https://editor.swagger.io/
, which follows themaster
branch.How Has This Been Tested?
I have manually test it in local development
npm run start
andnpm run build
. I think it can work in docker too.Screenshots (if appropriate):
With this commit, the openid authorization workflow is finally working.
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests