Merge branch 'master' into jwks_validation_error_control
This commit is contained in:
commit
b7ce9ab901
|
@ -132,6 +132,7 @@ def create_user_roles(profile):
|
|||
roles = []
|
||||
|
||||
# update their google 'roles'
|
||||
if 'googleGroups' in profile:
|
||||
for group in profile['googleGroups']:
|
||||
role = role_service.get_by_name(group)
|
||||
if not role:
|
||||
|
@ -139,6 +140,8 @@ def create_user_roles(profile):
|
|||
if not role.third_party:
|
||||
role = role_service.set_third_party(role.id, third_party_status=True)
|
||||
roles.append(role)
|
||||
else:
|
||||
current_app.logger.warning("'googleGroups' not sent by identity provider, no specific roles will assigned to the user.")
|
||||
|
||||
role = role_service.get_by_name(profile['email'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue