Skip to content
代码片段 群组 项目
提交 4608f82e 编辑于 作者: Jon Glassman's avatar Jon Glassman
浏览文件

Merge branch 'doc-gerardo-master-patch-35996' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -199,10 +199,16 @@ You can configure GitLab to use multiple SAML 2.0 identity providers if: ...@@ -199,10 +199,16 @@ You can configure GitLab to use multiple SAML 2.0 identity providers if:
Example multiple providers configuration for Omnibus GitLab: Example multiple providers configuration for Omnibus GitLab:
To allow your users to use SAML to sign up without having to manually create an account from either of the providers, add the following values to your configuration.
```ruby
gitlab_rails['omniauth_allow_single_sign_on'] = ['saml', 'saml1']
```
```ruby ```ruby
gitlab_rails['omniauth_providers'] = [ gitlab_rails['omniauth_providers'] = [
{ {
name: 'saml', name: 'saml', # This must match the following name configuration parameter
args: { args: {
name: 'saml', # This is mandatory and must match the provider name name: 'saml', # This is mandatory and must match the provider name
strategy_class: 'OmniAuth::Strategies::SAML', strategy_class: 'OmniAuth::Strategies::SAML',
...@@ -212,7 +218,7 @@ gitlab_rails['omniauth_providers'] = [ ...@@ -212,7 +218,7 @@ gitlab_rails['omniauth_providers'] = [
label: 'Provider 1' # Differentiate the two buttons and providers in the UI label: 'Provider 1' # Differentiate the two buttons and providers in the UI
}, },
{ {
name: 'saml1', name: 'saml1', # This must match the following name configuration parameter
args: { args: {
name: 'saml1', # This is mandatory and must match the provider name name: 'saml1', # This is mandatory and must match the provider name
strategy_class: 'OmniAuth::Strategies::SAML', strategy_class: 'OmniAuth::Strategies::SAML',
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册