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

[5.x] Only use the read_user scope for GitLab by default #403

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

Calinou
Copy link
Contributor

@Calinou Calinou commented Oct 28, 2019

This makes the GitLab provider use a smaller scope by default. This has two benefits:

  • If the user created the application without checking any of the scope checkboxes, GitLab will implicitly check all the boxes when submitting the form. This can result in all scopes being granted to the application, which is very broad.
  • If the user created the application with only the read_user scope being grantable to applications, Socialite will work correctly out of the box (without requiring the user to override the scopes being requested on the Laravel side).

This closes #402.

@Calinou Calinou force-pushed the gitlab-use-restricted-scope branch from bf3e061 to 60e5809 Compare October 28, 2019 13:45
- If the user created the application without checking any of the
  scope checkboxes, GitLab will implicitly check all the boxes when
  submitting the form. This can result in all scopes being granted
  to the application, which is very broad.

- If the user created the application with only the `read_user` scope
  being grantable to applications, Socialite will work correctly out
  of the box (without requiring the user to override the scopes being
  requested on the Laravel side).

This closes laravel#402.
@Calinou Calinou force-pushed the gitlab-use-restricted-scope branch from 60e5809 to b5b4bff Compare October 28, 2019 13:46
@Calinou Calinou changed the title Only use the read_user for GitLab by default Only use the read_user scope for GitLab by default Oct 28, 2019
@driesvints driesvints changed the title Only use the read_user scope for GitLab by default [5.x] Only use the read_user scope for GitLab by default Oct 28, 2019
@taylorotwell taylorotwell merged commit ccfa53e into laravel:master Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants