Make the auto_link_user OmniAuth setting configurable by provider
Release notes
Make the auto_link_user
OmniAuth setting configurable by provider.
Problem to solve
The auto_link_user
OmniAuth setting was introduced in !36664 (merged)
The current implementation is a true/false setting that applies to all providers.
In the MR, it was suggested to make the setting configurable for provider:
gitlab_rails['omniauth_auto_link_user'] = ['saml', 'google_oauth2']
Intended users
- [Sidney (Systems Administrator)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#sidney-
User experience goal
Site admins can set which OmniAuth strategies have the auto_link_user
setting for.
Proposal
Support checking that the current OmniAuth provider is in the supported array before auto linking the user via email.
Further details
https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/auth/o_auth/user.rb
Permissions and Security
Documentation
Availability & Testing
https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/lib/gitlab/auth/o_auth/user_spec.rb
What does success look like, and how can we measure that?
Support OmniAuth provider-specific setting for auto_link_user
Is this a cross-stage feature?
No