summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-03-15 15:19:55 +0000
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-03-20 13:03:15 +0000
commitfe82ef0c013a266f59b84d924f6269d8ea6ed792 (patch)
treeaf39db95cc4c4cf9bf9e73a9863c23687a9a9bac /config
parent216ead607cb3549e9d4ac36b2c1c84507fe97200 (diff)
downloadgitlab-ce-fe82ef0c013a266f59b84d924f6269d8ea6ed792.tar.gz
Adds JWT omnianuth integration
Diffstat (limited to 'config')
-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 bd696a7f2c5..9c8ad49b562 100644
--- a/config/gitlab.yml.example
+++ b/config/gitlab.yml.example
@@ -481,7 +481,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',
@@ -733,6 +743,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',