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

FR: Sync GitLab permissions with Sourcebot #116

Open
kowhi opened this issue Dec 7, 2024 · 4 comments
Open

FR: Sync GitLab permissions with Sourcebot #116

kowhi opened this issue Dec 7, 2024 · 4 comments
Labels
enhancement New feature or request gitlab Issues related to integrating or supporting GitLab functionality.

Comments

@kowhi
Copy link

kowhi commented Dec 7, 2024

I wish to control the Repository scope through user permissions, how can I do this

@brendan-kellam
Copy link
Contributor

Could you elaborate more on how you would want to control repository permissions? Would you want to sync existing permissions from your code host, or directly configure permissions within Sourcebot?

@brendan-kellam brendan-kellam added the question Further information is requested label Dec 7, 2024
@kowhi
Copy link
Author

kowhi commented Dec 9, 2024

I am using GitLab and I would like to sync GitLab permissions. Retrieve user information through cookies, and then search based on the Repository within the user's permissions

@brendan-kellam brendan-kellam changed the title How do I get cookies from the search api, or is there any function regarding user permissions? FR: Sync GitLab permissions with Sourcebot Dec 9, 2024
@brendan-kellam brendan-kellam added enhancement New feature or request and removed question Further information is requested labels Dec 9, 2024
@brendan-kellam
Copy link
Contributor

@kowhi gotcha - I'm not sure if it would be possible for us to access a GitLab cookie since it's cross-origin. Another approach we could take is to support OAuth and allow for users to sign in with GitLab. This would require us to support authentication within Sourcebot, which is a bigger task

@brendan-kellam brendan-kellam added the gitlab Issues related to integrating or supporting GitLab functionality. label Dec 24, 2024
@FatalMerlin
Copy link

FatalMerlin commented Jan 27, 2025

@brendan-kellam supporting GitLab OAuth would be huge, as it should also remove the requirement for using PATs for authentication, and users would be able to login with GitLab at the same time, too! +1, would greatly appreciate this feature.

Would it make sense to change the issue title to FR: GitLab OAuth Integration? As far as I can tell this would 100% provide the originally requested functionality.

Edit: NVM, PAT can be replaced with Group access token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gitlab Issues related to integrating or supporting GitLab functionality.
Projects
None yet
Development

No branches or pull requests

3 participants