aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-04-29 08:03:04 +0200
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-04-29 08:03:04 +0200
commit35936dc086e44fa0c87ce17bf5e31c0d7e52b1b6 (patch)
tree5ca75cf55b999a69449de41dac597d7639342b75 /config
parentb66f348f3bc6ce48c98eb38de1f6163030c75b07 (diff)
openid connect: allow setting custom scopes in configuration, fixes #5566
Closes #5566 Merge request studip/studip!4189
Diffstat (limited to 'config')
-rw-r--r--config/config_defaults.inc.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/config/config_defaults.inc.php b/config/config_defaults.inc.php
index 66b6900..5e7875b 100644
--- a/config/config_defaults.inc.php
+++ b/config/config_defaults.inc.php
@@ -266,13 +266,15 @@ $STUDIP_AUTH_CONFIG_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' => ''],
+ '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' => []
];
$STUDIP_AUTH_CONFIG_LTI = [