Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/administration/auth/cognito.md')
-rw-r--r--doc/administration/auth/cognito.md28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/administration/auth/cognito.md b/doc/administration/auth/cognito.md
index d137489a838..718a2919ed0 100644
--- a/doc/administration/auth/cognito.md
+++ b/doc/administration/auth/cognito.md
@@ -56,25 +56,25 @@ Include the code block in the `/etc/gitlab/gitlab.rb` file:
gitlab_rails['omniauth_allow_single_sign_on'] = ['cognito']
gitlab_rails['omniauth_providers'] = [
{
- "name" => "cognito",
- # "label" => "Cognito",
- # "icon" => nil, # Optional icon URL
- "app_id" => "CLIENT ID",
- "app_secret" => "CLIENT SECRET",
- "args" => {
- "scope" => "openid profile email",
+ name: "cognito",
+ label: "Provider name", # optional label for login button, defaults to "Cognito"
+ icon: nil, # Optional icon URL
+ app_id: "CLIENT ID",
+ app_secret: "CLIENT SECRET",
+ args: {
+ scope: "openid profile email",
client_options: {
- 'site' => 'https://your_domain.auth.your_region.amazoncognito.com',
- 'authorize_url' => '/oauth2/authorize',
- 'token_url' => '/oauth2/token',
- 'user_info_url' => '/oauth2/userInfo'
+ site: "https://your_domain.auth.your_region.amazoncognito.com",
+ authorize_url: "/oauth2/authorize",
+ token_url: "/oauth2/token",
+ user_info_url: "/oauth2/userInfo"
},
user_response_structure: {
root_path: [],
- id_path: ['sub'],
- attributes: { nickname: 'email', name: 'email', email: 'email' }
+ id_path: ["sub"],
+ attributes: { nickname: "email", name: "email", email: "email" }
},
- name: 'cognito',
+ name: "cognito",
strategy_class: "OmniAuth::Strategies::OAuth2Generic"
}
}