-
Notifications
You must be signed in to change notification settings - Fork 70
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
Encode the authentication reject error to build a proper callback url #568
Conversation
This is another bug. You can reproduce it even on dogfooding:
I don't think we should do something with this because according to the issue we will not ask to authorise on workspace start, as the authorisation can be either accepted or rejected once on workspace create step. The PR does not contain this part as the approach should be clarified with @ibuziuk |
/test v12-bitbucket-no-pat-oauth-flow |
@tolusha opened a separate issue: eclipse-che/che#22539 |
@vinokurig: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
wsmaster/che-core-api-auth/src/main/java/org/eclipse/che/security/oauth/EmbeddedOAuthAPI.java
Outdated
Show resolved
Hide resolved
Verified on Che deployed with
The functionality works as expected. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: artaleks9, ibuziuk, tolusha, vinokurig The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Build 3.10 :: server_3.x/250: Console, Changes, Git Data |
Build 3.10 :: sync-to-downstream_3.x/4811: Console, Changes, Git Data |
Build 3.10 :: push-latest-container-to-quay_3.x/3407: Console, Changes, Git Data |
Build 3.10 :: get-sources-rhpkg-container-build_3.x/4605: server : 3.x :: Build 55793667 : quay.io/devspaces/server-rhel8:3.10-13 |
Build 3.10 :: update-digests_3.x/4458: Console, Changes, Git Data |
Build 3.10 :: server_3.x/250: Upstream sync done; /DS_CI/sync-to-downstream_3.x/4811 triggered |
…#568) Encode the &error_code=access_denied query param for the callback url in order to fix the bug when the authentication request appears again if it was rejected.
Build 3.10 :: operator-bundle_3.x/2104: Console, Changes, Git Data |
Build 3.10 :: sync-to-downstream_3.x/4812: Console, Changes, Git Data |
Build 3.10 :: push-latest-container-to-quay_3.x/3408: Console, Changes, Git Data |
Build 3.10 :: sync-to-downstream_3.x/4812: Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/4606 triggered; /job/DS_CI/job/dsc_3.x triggered; |
Build 3.10 :: operator-bundle_3.x/2104: Upstream sync done; /DS_CI/sync-to-downstream_3.x/4812 triggered |
Build 3.10 :: copyIIBsToQuay/1952: Console, Changes, Git Data |
Build 3.10 :: dsc_3.x/1423: Console, Changes, Git Data |
Build 3.10 :: update-digests_3.x/4458: Detected new images: rebuild operator-bundle |
Build 3.10 :: dsc_3.x/1423: 3.10.0 CI |
What does this PR do?
Encode the
&error_code=access_denied
query param for the callback url in order to fix the bug when the authentication request appears again if it was rejected.DO NOT MERGE until eclipse-che/che-dashboard#932 is merged
Screenshot/screencast of this PR
What issues does this PR fix or reference?
eclipse-che/che#22499
fixes eclipse-che/che#22539
How to test this PR?
quay.io/eclipse/che-server:pr-568
See: the workspace start proceeds without fetching the token.
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.