Skip to content

Commit 0f4b660

Browse files
authored
Merge pull request YoitoFes#9 from YoitoFes/fix8
2 parents c7829fa + e9563db commit 0f4b660

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

action.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ public function getUser()
4343
$data['user'] = $result['preferred_username'];
4444
$data['name'] = $result['name'];
4545
$data['mail'] = $result['email'];
46-
$data['grps'] = $result['groups'];
46+
if (array_key_exists('groups', $result)) {
47+
$data['grps'] = $result['groups'];
48+
} else {
49+
$data['grps'] = [];
50+
}
4751

4852
return $data;
4953
}

plugin.info.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
base oauthkeycloak
22
author Naoto Kobayashi
33
email naoto.kobayashi4c@gmail.com
4-
date 2022-03-17
4+
date 2024-05-06
55
name oAuth Keycloak Service
66
desc Keycloak Service for use with the oAuth Plugin
77
url http://www.dokuwiki.org/plugin:oauthkeycloak

0 commit comments

Comments
 (0)