kumidc/core/oidc/userinfo.py

5 lines
144 B
Python
Raw Normal View History

2022-08-02 09:49:45 +00:00
def userinfo(claims, user):
claims['email'] = user.email
2022-08-04 11:15:10 +00:00
claims['email_verified'] = bool(user.profile.email_verified)
2022-08-02 09:49:45 +00:00
return claims