diff options
| author | André Noack <noack@data-quest.de> | 2021-12-21 11:08:51 +0000 |
|---|---|---|
| committer | André Noack <noack@data-quest.de> | 2021-12-21 11:08:51 +0000 |
| commit | 7660820a38d539ab06eafdfbf757014169baac40 (patch) | |
| tree | a5981bc26f0a474de0b07218625c1d924c531cb6 /config | |
| parent | b0a1a7adf5203efa32661b96ecb023fef74c5d2d (diff) | |
Resolve "OpenID Connect als SSO AuthPlugin"
Diffstat (limited to 'config')
| -rw-r--r-- | config/config_defaults.inc.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config/config_defaults.inc.php b/config/config_defaults.inc.php index 14c1757..2b6f2ca 100644 --- a/config/config_defaults.inc.php +++ b/config/config_defaults.inc.php @@ -326,6 +326,26 @@ $STUDIP_AUTH_CONFIG_CAS = array("host" => "cas.studip.de", "auth_user_md5.Email" => array("callback" => "getUserData", "map_args" => "email"), "auth_user_md5.perms" => array("callback" => "getUserData", "map_args" => "status"))); +//example of OpenID Connect +$STUDIP_AUTH_CONFIG_GOOGLE = [ + 'provider_url' => 'https://accounts.google.com', + 'client_id' => '', + 'client_secret' => '', + 'plugin_class' => 'StudipAuthOIDC', + 'plugin_name' => 'google', + 'domain' => 'google', + 'plugin_fullname' => 'Google', + 'login_description' => 'Login with Google', + 'ssl_options' => ['certPath' => null, 'verifyPeer' => true, 'verifyHost' => true], + 'user_data_mapping' => + ['auth_user_md5.username' => ['callback' => 'dummy', 'map_args' => ''], + 'auth_user_md5.password' => ['callback' => 'dummy', 'map_args' => ''], + 'auth_user_md5.Email' => ['callback' => 'getUserData', 'map_args' => 'email'], + 'auth_user_md5.Nachname' => ['callback' => 'getUserData', 'map_args' => 'family_name'], + 'auth_user_md5.Vorname' => ['callback' => 'getUserData', 'map_args' => 'given_name'] + ] + ]; + $STUDIP_AUTH_CONFIG_LTI = [ 'consumer_keys' => [ // 'domain' is optional, default is value of consumer_key |
