diff --git a/src/idpyoidc/server/authz/__init__.py b/src/idpyoidc/server/authz/__init__.py index bcb4929d..5dfb5991 100755 --- a/src/idpyoidc/server/authz/__init__.py +++ b/src/idpyoidc/server/authz/__init__.py @@ -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