From 25442c76188477c0ce0f853410d8a36352dc899f Mon Sep 17 00:00:00 2001 From: Mauro Mugnaini Date: Tue, 16 Feb 2021 11:26:54 +0100 Subject: [PATCH] Twitter and Github as IdP added --- defaults/plain_main.yml | 4 +++ templates/d4science_realm.json.j2 | 42 +++++++++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/defaults/plain_main.yml b/defaults/plain_main.yml index b220f39..a0455c6 100644 --- a/defaults/plain_main.yml +++ b/defaults/plain_main.yml @@ -7,6 +7,10 @@ linkedin_clientId: "" linkedin_clientSecret: "" google_clientId: "" google_clientSecret: "" +twitter_clientId: "" +twitter_clientSecret: "" +github_clientId: "" +github_clientSecret: "" recaptcha_key: "" recaptcha_secret: "" ldap_credential: "" diff --git a/templates/d4science_realm.json.j2 b/templates/d4science_realm.json.j2 index 587c069..830932a 100644 --- a/templates/d4science_realm.json.j2 +++ b/templates/d4science_realm.json.j2 @@ -75,7 +75,7 @@ "identityProviders": [ { "alias": "eosc-oidc", - "displayName": "Academic / other account", + "displayName": "Academic / other", "providerId": "oidc", "enabled": true, "updateProfileFirstLoginMode": "on", @@ -139,7 +139,45 @@ "useJwksUrl": "true", "guiOrder" : "3" } - } + }, + { + "alias": "twitter", + "providerId": "twitter", + "enabled": true, + "updateProfileFirstLoginMode": "on", + "trustEmail": false, + "storeToken": false, + "addReadTokenRoleOnCreate": false, + "authenticateByDefault": false, + "linkOnly": false, + "firstBrokerLoginFlowAlias": "first broker login", + "config": { + "syncMode": "IMPORT", + "clientSecret": "{{ twitter_clientSecret }}", + "clientId": "{{ twitter_clientId }}", + "useJwksUrl": "true", + "guiOrder" : "4" + } + }, + { + "alias": "github", + "providerId": "github", + "enabled": true, + "updateProfileFirstLoginMode": "on", + "trustEmail": true, + "storeToken": false, + "addReadTokenRoleOnCreate": false, + "authenticateByDefault": false, + "linkOnly": false, + "firstBrokerLoginFlowAlias": "first broker login", + "config": { + "syncMode": "IMPORT", + "clientSecret": "{{ github_clientSecret }}", + "clientId": "{{ github_clientId }}", + "useJwksUrl": "true", + "guiOrder" : "5" + } + }, ], "identityProviderMappers": [ {