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
Handle relative urls for oauth authorization #5244
Handle relative urls for oauth authorization #5244
Conversation
@EliotBerriot thanks for this, your implementation is well-architected 👍 Have you tested this with an OpenAPI 2.0 definition? All the |
thanks @shockey, I'll try that and let you know :) |
@shockey I've tested locally with a swagger 2.0 file and the full oauth flow seems to work. I've pushed an additionial safeguard just in case. :) |
@shockey is there anything I can do to proceed here? The CI build failed but it was apparently aborted on the jenkins node, and I don't find a way to relaunch it. |
@EliotBerriot yep, one sec, I'll trigger it again |
please build |
it passed 🎉 |
Rebase? Thank you for PR! |
The full URL is computed based on the current selected server if a relative URL is used as authorizationUrl or tokenUrl
e406de0
to
b5b290d
Compare
@hthetiot: just did that, it should be up to date now :) |
bumped into the lack of support for this myself today... (FYI: we haven't forgotten about this, or any, of our open PRs! we have a big branch we've been working on internally that needs to land on master before we merge more community PRs -- should be resolved in a matter of weeks.) |
Is this going to be merged in anytime soon? Is there a workaround currently? |
Any updates on this? |
I just want to notice that it was almost a year since the original PR. Please merge this PR. |
Can someone from the team have a look at this please? |
@EliotBerriot Thanks for the PR and patience! Can you rebase and resolve merge conflicts? Once done, should be good to go! |
@tim-lai I'm sorry, I currently lack the time and energy to do so. Can someone else take over and finish this? |
merged via PR #6546 |
Closes #5243 and #3992
The full URL is computed based on the current selected server
if a relative URL is used as authorizationUrl or tokenUrl
Description
Ensure we support relative
authorizationUrl
andtokenUrl
(relative to the server endpoint) with OAuth.I'm not sure if this can break backward compatibility, just let me know if you need any change :)
How Has This Been Tested?
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests