Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9fdcdea8
Commit
9fdcdea8
authored
Mar 19, 2020
by
Wojciech Pater
Committed by
Mike Jang
Mar 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Cognito docs - empty `extern_uid`
parent
cb75f697
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
doc/administration/auth/cognito.md
doc/administration/auth/cognito.md
+5
-3
No files found.
doc/administration/auth/cognito.md
View file @
9fdcdea8
...
...
@@ -26,7 +26,7 @@ The following steps enable AWS Cognito as an authentication provider:
-
**Callback URL**
-
`https://gitlab.example.com/users/auth/cognito/callback`
-
Substitute the URL of your GitLab instance for
`gitlab.example.com`
-
**Allowed OAuth Flows**
- Authorization code grant
-
**Allowed OAuth
Scopes**
-
`email`
and
`openid
`
-
**Allowed OAuth
2 Scopes**
-
`email`
,
`openid`
, and
`profile
`
1.
Save changes for the app client settings.
1.
Under
**Domain name**
include the AWS domain name for your AWS Cognito application.
...
...
@@ -54,15 +54,17 @@ Include the code block in the `/etc/gitlab/gitlab.rb` file:
"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'
=>
'/
login
'
,
'authorize_url'
=>
'/
oauth2/authorize
'
,
'token_url'
=>
'/oauth2/token'
,
'user_info_url'
=>
'/oauth2/userInfo'
},
user_response_structure:
{
root_path:
[],
attributes:
{
nickname:
'email'
}
id_path:
[
'sub'
],
attributes:
{
nickname:
'email'
,
name:
'email'
,
email:
'email'
}
},
name:
'cognito'
,
strategy_class:
"OmniAuth::Strategies::OAuth2Generic"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment