Skip to content
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

Adding extra permissions break Bitbucket Saas OAuth flow #22301

Closed
ibuziuk opened this issue Jun 16, 2023 · 2 comments
Closed

Adding extra permissions break Bitbucket Saas OAuth flow #22301

ibuziuk opened this issue Jun 16, 2023 · 2 comments
Assignees
Labels
area/doc Issues related to documentation area/git/oauth-services OAuth support to authenticate developers with their GitHub, GitLab, Bitbucket etc...accounts kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system. sprint/next
Milestone

Comments

@ibuziuk
Copy link
Member

ibuziuk commented Jun 16, 2023

Describe the bug

According to the docs https://www.eclipse.org/che/docs/stable/administration-guide/configuring-oauth-2-for-the-bitbucket-cloud/ configuring bitbucket SaaS requires Account and Repositories

image

However, if extra permissions are granted OAuth flow will be broken (it will not be possible to clone private repos)

Che version

7.69@latest

Steps to reproduce

  1. Configure BitBucket SaaS according to the docs, but add extra permissions a part from required Account and Repositories
  2. Create workspace based on the private BitBucket repo
  3. ERROR: project can not be clonned - fatal: could not read Username for 'https://bitbucket.org/': No such device or address

Expected behavior

OAuth works if extra permissions are added

Runtime

OpenShift

Screenshots

No response

Installation method

OperatorHub

Environment

Amazon

Eclipse Che Logs

No response

Additional context

at the very least we should add a warning in the docs that adding extra permissions is prohibited

@ibuziuk ibuziuk added the kind/bug Outline of a bug - must adhere to the bug report template. label Jun 16, 2023
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jun 16, 2023
@ibuziuk ibuziuk added area/git/oauth-services OAuth support to authenticate developers with their GitHub, GitLab, Bitbucket etc...accounts severity/P2 Has a minor but important impact to the usage or development of the system. area/doc Issues related to documentation sprint/next and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jun 16, 2023
@tolusha tolusha self-assigned this Aug 16, 2023
@tolusha tolusha added this to the 7.74 milestone Aug 22, 2023
@tolusha tolusha closed this as completed Aug 22, 2023
@ibuziuk
Copy link
Member Author

ibuziuk commented Aug 24, 2023

@tolusha do we need docs PR for that or current instructions should be fine?

@tolusha
Copy link
Contributor

tolusha commented Aug 24, 2023

It does not require any documentation update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/doc Issues related to documentation area/git/oauth-services OAuth support to authenticate developers with their GitHub, GitLab, Bitbucket etc...accounts kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system. sprint/next
Projects
None yet
Development

No branches or pull requests

3 participants