-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: Add Device Authentication flow support #260
Conversation
1aa2f55
to
60a47be
Compare
Pull Request images published ✨ |
60a47be
to
04b37d4
Compare
Pull Request images published ✨ |
4 similar comments
Pull Request images published ✨ |
Pull Request images published ✨ |
Pull Request images published ✨ |
Pull Request images published ✨ |
0a3d1d4
to
52c26a7
Compare
Pull Request images published ✨ |
52c26a7
to
6e44b26
Compare
Pull Request images published ✨ |
6e44b26
to
af6b2c8
Compare
Pull Request images published ✨ |
1 similar comment
Pull Request images published ✨ |
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
af6b2c8
to
ae3bdab
Compare
Pull Request images published ✨ |
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
Pull Request images published ✨ |
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
Pull Request images published ✨ |
2 similar comments
Pull Request images published ✨ |
Pull Request images published ✨ |
Pull Request images published ✨ |
Build 3.11 :: push-latest-container-to-quay_3.x/3535: Console, Changes, Git Data |
Build 3.11 :: sync-to-downstream_3.x/5110: Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/4958 triggered; /job/DS_CI/job/dsc_3.x triggered; |
Build 3.11 :: operator-bundle_3.x/2228: Upstream sync done; /DS_CI/sync-to-downstream_3.x/5110 triggered |
Build 3.11 :: copyIIBsToQuay/2021: Console, Changes, Git Data |
Build 3.11 :: update-digests_3.x/4716: Detected new images: rebuild operator-bundle |
Build 3.11 :: dsc_3.x/1494: Console, Changes, Git Data |
I see such error from time to time and usually restarting of build helps. |
Build 3.11 :: code_3.x/965: Console, Changes, Git Data |
Build 3.11 :: sync-to-downstream_3.x/5124: Console, Changes, Git Data |
Build 3.11 :: push-latest-container-to-quay_3.x/3553: Console, Changes, Git Data |
Build 3.11 :: get-sources-rhpkg-container-build_3.x/4976: code : 3.x :: Build 56596831 : quay.io/devspaces/code-rhel8:3.11-3 |
Build 3.11 :: update-digests_3.x/4738: Console, Changes, Git Data |
Build 3.11 :: code_3.x/965: Upstream sync done; /DS_CI/sync-to-downstream_3.x/5124 triggered |
Build 3.11 :: operator-bundle_3.x/2233: Console, Changes, Git Data |
Build 3.11 :: sync-to-downstream_3.x/5128: Console, Changes, Git Data |
Build 3.11 :: push-latest-container-to-quay_3.x/3555: Console, Changes, Git Data |
Build 3.11 :: copyIIBsToQuay/2029: Console, Changes, Git Data |
Build 3.11 :: sync-to-downstream_3.x/5128: Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/4978 triggered; /job/DS_CI/job/dsc_3.x triggered; |
Build 3.11 :: operator-bundle_3.x/2233: Upstream sync done; /DS_CI/sync-to-downstream_3.x/5128 triggered |
Build 3.11 :: dsc_3.x/1499: Console, Changes, Git Data |
Build 3.11 :: update-digests_3.x/4738: Detected new images: rebuild operator-bundle |
What does this PR do?
Github: Device Authentication
commandGithub: Remove Device Authentication Token
commandDevice Authentication
token to a separate secret.git-credential/credentials
file, see Error: Invalid character in header content ["Authorization"] when sign in using GitHub eclipse-che/che#22433.device.auth.mp4
Eclipse Che API
andChe Github Authentication
extensions, so logs are available in the corresponding channels of theOutput
viewWhat issues does this PR fix?
eclipse-che/che#22139
How to test this PR?
Use case 1 - an extension authorization
Device Authentication
flow for authorizationF1 => Device Authentication
=> follow the flowUse case 2 - Git related operations should work correctly when a Device Authentication token is used
F1
=>Git Clone
=> follow the flowUse case 3 - Git related operations should work correctly after removing a Device Authentication token
F1
=>Github: Remove Device Authentication Token
Accounts
on the left panel =>Github Sign Out
Git Clone
command should work correctly, using a token from the.git-credential/credentials
file (if it's present)Use case 4 - the changes should fix
Error: Invalid character in header content
problem when there are few tokensgitlab
repo - thegitlab
token should be added to the.git-credential/credentials
filegithub
repo - thegithub
token should be added to the.git-credential/credentials
file.git-credential/credentials
file contains both tokensF1
=>Git Clone
=> follow the flowUse case 5 - Device Authentication flow can be used for authentication when there is no git-credential secrets/tokens
git-credential
secrets.git-credential/credentials
file is emptyF1
=>Git Clone
=> follow the flow => you should get an error - there is no tokenF1
=>Device Authentication
=> follow the flowF1
=>Git Clone
again - now theGithub Service
should useDevice Authentication
token and the operation should be completed successfully