Browse Source
fix: check uma permissions with resource ID as well
pull/627/head
Richard Nemeth
1 week ago
No known key found for this signature in database
GPG Key ID: 21C39470DF3DEC39
1 changed files with
14 additions and
14 deletions
-
src/keycloak/keycloak_openid.py
|
|
@ -803,7 +803,7 @@ class KeycloakOpenID: |
|
|
|
raise |
|
|
|
|
|
|
|
for resource_struct in granted: |
|
|
|
resource = resource_struct["rsname"] |
|
|
|
for resource in (resource_struct["rsname"], resource_struct["rsid"]): |
|
|
|
scopes = resource_struct.get("scopes", None) |
|
|
|
if not scopes: |
|
|
|
needed.discard(resource) |
|
|
@ -1469,7 +1469,7 @@ class KeycloakOpenID: |
|
|
|
raise |
|
|
|
|
|
|
|
for resource_struct in granted: |
|
|
|
resource = resource_struct["rsname"] |
|
|
|
for resource in (resource_struct["rsname"], resource_struct["rsid"]): |
|
|
|
scopes = resource_struct.get("scopes", None) |
|
|
|
if not scopes: |
|
|
|
needed.discard(resource) |
|
|
|