Skip to content

Commit

Permalink
added roles
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Mar 18, 2024
1 parent 3704bb9 commit 06a1580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keycloak_security_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def handle_login():
roles = info.get('roles', [])
roles += [default_role, ]
sub = info.get("sub")
print("sub", sub)
print("roles", roles)
#user = sm.add_user(info.get('preferred_username'), info.get('given_name', ''), info.get('family_name', ''),
# info.get('email'), [sm.find_role(role) for role in roles])
user = sm.add_user(
Expand Down

0 comments on commit 06a1580

Please sign in to comment.