Skip to content
Snippets Groups Projects
Verified Commit c3315e63 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Show description in scopes grant view

parent c6c2c474
No related branches found
No related tags found
No related merge requests found
Pipeline #16906 canceled
......@@ -42,6 +42,12 @@ class CustomOAuth2Validator(OAuth2Validator):
"preferred_username": request.user.username,
}
scopes = {
"profile": _("Given name, family name, url to profile and picture if existing."),
"email": _("Email address"),
"address": _("Postal address"),
}
if "profile" in request.scopes:
if has_person(request.user):
claims["given_name"] = request.user.person.first_name
......
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