Skip to content
Snippets Groups Projects
Verified Commit 535edfaf authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[OAuth] Correctly cast groups list in claims to list

parent d1e32219
No related branches found
No related tags found
1 merge request!796Various OAuth fixes
Pipeline #42863 canceled
......@@ -82,7 +82,9 @@ class CustomOAuth2Validator(OAuth2Validator):
}
if "groups" in request.scopes and has_person(request.user):
claims["groups"] = request.user.person.member_of.values_list("name", flat=True).all()
claims["groups"] = list(
request.user.person.member_of.values_list("name", flat=True).all()
)
return claims
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment