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
Do not pass oauth2 as a username to Git credentials for Bitbucket #662
Conversation
NameGenerator.generate( | ||
// Do not pass oauth2 as a username to Git credentials for Bitbucket | ||
"bitbucket".equals(providerName) ? providerName + "-" : OAUTH_2_PREFIX, 5), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, extract the logic to the separate method with a proper javadoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinokurig is the providee name the same for on-prem Bitbucket server and SaaS ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it is the same. We have bitbucket-server
implementation but it handles oauth1 only and does not use this logic. OAuth2 flow from both bitbucket and bitbucket server is handled by the bitbucket
implementation.
/retest |
1 similar comment
/retest |
Verified on Eclipse Che with |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: artaleks9, ibuziuk, 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 |
Set bitbucket-***** as a token name annotation for bitbucket token secret. This is needed to pass username instead of oauth2 for bitbucket credentials
What does this PR do?
Set
bitbucket-*****
as a token name annotation for bitbucket token secret. This is needed to pass username instead ofoauth2
for bitbucket credentials:che-server/infrastructures/infrastructure-factory/src/main/java/org/eclipse/che/api/factory/server/scm/kubernetes/KubernetesGitCredentialManager.java
Lines 169 to 184 in 7dc7a61
This fixes the bug when a private bitbucket.org project is not cloned.
Screenshot/screencast of this PR
What issues does this PR fix or reference?
https://issues.redhat.com/browse/CRW-5952
How to test this PR?
See: the workspace starts successfully.
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.