diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-02-10 13:30:29 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-02-10 13:30:56 +0100 |
| commit | 013d0e6b5eeb6036246f60eca48123aaa18da040 (patch) | |
| tree | ba4feca990f7bfca9a79c7d90ffcf5c035b1650f /config | |
| parent | 204a7bab3b295adb26803e8fab8bb7f4b49ebe5a (diff) | |
store auth plugin name and additional values in session, implement for oidc and enable post logout redirect uri, fixes #5680
Closes #5680
Merge request studip/studip!4310
Diffstat (limited to 'config')
| -rw-r--r-- | config/config_defaults.inc.php | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/config/config_defaults.inc.php b/config/config_defaults.inc.php index d671bfb..6435fe8 100644 --- a/config/config_defaults.inc.php +++ b/config/config_defaults.inc.php @@ -257,29 +257,32 @@ $STUDIP_AUTH_CONFIG_CAS = array("host" => "cas.studip.de", //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'] - ], + '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'] + ], - // Enable the next line to allow setting your own scopes - // 'scopes' => [], + // Enable the next line to allow setting your own scopes + // 'scopes' => [], - // Enable the next line to set a custom redirect uri - // 'redirect_uri' => '', - ]; + // Enable the next line to set a custom redirect uri + // 'redirect_uri' => '', + + // Enable the next line to set a custom post logout redirect uri + // 'logout_redirect_uri' => '', +]; $STUDIP_AUTH_CONFIG_LTI = [ 'consumer_keys' => [ |
