summaryrefslogtreecommitdiff
path: root/config/gitlab.yml.example
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-03-27 09:06:12 +0000
committerDouwe Maan <douwe@gitlab.com>2018-03-27 09:06:12 +0000
commit678af224a235e621530e13dd2b96bf2b1caff725 (patch)
treecf0da8bdf099efdfac63f50d6b7c3cb33cac203e /config/gitlab.yml.example
parentffa73498b1c3125eec6d51db4502ab22da664773 (diff)
parent775796cdf776f00b5dafe27e2eaafff3f322c5a7 (diff)
downloadgitlab-ce-678af224a235e621530e13dd2b96bf2b1caff725.tar.gz
Merge branch '43512-add-support-for-omniauth-jwt-provider' into 'master'
Resolve "Add support for omniauth-jwt provider" Closes #43512 See merge request gitlab-org/gitlab-ce!17774
Diffstat (limited to 'config/gitlab.yml.example')
-rw-r--r--config/gitlab.yml.example23
1 files changed, 22 insertions, 1 deletions
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example
index 05299adfa93..a23145de3e5 100644
--- a/config/gitlab.yml.example
+++ b/config/gitlab.yml.example
@@ -518,7 +518,17 @@ production: &base
# - { name: 'twitter',
# app_id: 'YOUR_APP_ID',
# app_secret: 'YOUR_APP_SECRET' }
- #
+ # - { name: 'jwt',
+ # app_secret: 'YOUR_APP_SECRET',
+ # args: {
+ # algorithm: 'HS256',
+ # uid_claim: 'email',
+ # required_claims: ["name", "email"],
+ # info_map: { name: "name", email: "email" },
+ # auth_url: 'https://example.com/',
+ # valid_within: nil,
+ # }
+ # }
# - { name: 'saml',
# label: 'Our SAML Provider',
# groups_attribute: 'Groups',
@@ -799,6 +809,17 @@ test:
- { name: 'twitter',
app_id: 'YOUR_APP_ID',
app_secret: 'YOUR_APP_SECRET' }
+ - { name: 'jwt',
+ app_secret: 'YOUR_APP_SECRET',
+ args: {
+ algorithm: 'HS256',
+ uid_claim: 'email',
+ required_claims: ["name", "email"],
+ info_map: { name: "name", email: "email" },
+ auth_url: 'https://example.com/',
+ valid_within: nil,
+ }
+ }
- { name: 'auth0',
args: {
client_id: 'YOUR_AUTH0_CLIENT_ID',