Skip to content

Commit

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

if resources is None:
if resources is None and grant.resources is None:
grant.resources = [_client_id]
else:
elif resources is not None:
grant.resources = resources

# Scope handling. If allowed scopes are defined for the client filter using that
Expand Down

0 comments on commit e9917c7

Please sign in to comment.