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:35:38 +0200
commit474bad68cc1585a60e4af50f3abe1b86b70eb60e (patch)
tree5d4510a11ad58d5f3984c9283eefdbd10c400364 /config
parentdbc0a7ffc01c512ca7cdbfc3f2ccf2798abcdeba (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 d7caea7..7bbf4d5 100644
--- a/config/config_defaults.inc.php
+++ b/config/config_defaults.inc.php
@@ -342,13 +342,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 = [