providers/oauth2: add unofficial groups attribute to default profile claim

This commit is contained in:
Jens Langhammer 2021-02-08 11:50:26 +01:00
parent 3ced67b151
commit f8abe3e210

View file

@ -23,6 +23,8 @@ return {
"family_name": "",
"preferred_username": user.username,
"nickname": user.username,
# groups is not part of the official userinfo schema, but is a quasi-standard
"groups": [group.name for group in user.ak_groups.all()],
}
"""