Browse Source

Twitter and Github as IdP added

master
Mauro Mugnaini 1 year ago
parent
commit
25442c7618
  1. 4
      defaults/plain_main.yml
  2. 42
      templates/d4science_realm.json.j2

4
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: ""

42
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": [
{

Loading…
Cancel
Save