Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lionick committed May 9, 2024
1 parent e9917c7 commit 404164c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idpyoidc/server/authz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __call__(
else:
setattr(grant, key, val)

if resources is None and grant.resources is None:
if resources is None and (grant.resources is None or len(grant.resources) == 0):
grant.resources = [_client_id]
elif resources is not None:
grant.resources = resources
Expand Down

0 comments on commit 404164c

Please sign in to comment.