-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Gitlab Authentication not working #2359
Comments
Thanks for reporting @serge-kilimoff. I've just spent some time investigating this. Looks like previously you could create an "Application" within GitLab without selecting scopes, which would then work when no scopes are provided. Looks like you can no longer do this since you're forced to make a selection. I'm unsure if this would previously give that application all permissions or a minimal set. Potentially it would have given all since I see that, when you select all scopes at least, it does enable the current functionality to work. Of course it is better to use the minimal scope. This is something I'll look to create a PR for in the upstream package we're using. Before I do, You mentioned:
Is there a better permission to use? That looks to be the most applicable within my view and is what I'm seeing in use by some other packages. Resources for my future reference |
I confirm that it worked before without |
@serge-kilimoff Awesome, Thanks for confirming. |
PR opened in SocialiteProviders/Providers#582 Will look to include in next feature release (v0.31) once merged. Wouldn't really look to include in a sooner patch release since it could be a breaking change in some instances. Note to self - For Update Docs when Released"Applications" within GitLab, created for BookStack authentication use, will need to have the Also need to document the PHP version change required as per changes in 2b603b0. |
Would like to add I had this same exact problem with a docker image of Bookstack and an on-prem instance of gitlab. After using the hot fix with it worked as intended. |
PR was merged and included in the project as part of 2b603b0 so I'll therefore close this. Will be part of BookStack v0.31. |
Gitlab authentication is not working.
GITLAB_APP_ID, GITLAB_APP_SECRET and GITLAB_APP_URI have been correctly entered.
When redirecting to my Gitlab (self-hosted), the url contains an empty
scope =
parameter. However, Gitlab does not seem (or no longer) to accept empty scopes.A temporary fix that I made on my side is to add in the file
app / Auth / Access / SocialAuthService.php
, in the functiongetSocialDriver
an additional condition:I put
read_user
, but it's definitely too high a permission.Gitlab version: 13.5.3
Thank you very much !
The text was updated successfully, but these errors were encountered: