Skip to content

Commit

Permalink
Merge pull request #89 from lionick/grant_refresh_token_client
Browse files Browse the repository at this point in the history
Grant refresh token if is configured to client
  • Loading branch information
rohe authored Dec 18, 2023
2 parents 55a83be + b2533b7 commit 774ddc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/idpyoidc/server/oidc/token_helper/access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ def process_request(self, req: Union[Message, dict], **kwargs):

_authn_req = grant.authorization_request

# Check if refresh_token is at the client's grant_types_supported
# but not in global configuration then we should grant it
if "refresh_token" in grant_types_supported and "refresh_token" not in _supports_minting:
_supports_minting.append("refresh_token")

# If redirect_uri was in the initial authorization request
# verify that the one given here is the correct one.
if "redirect_uri" in _authn_req:
Expand Down

0 comments on commit 774ddc4

Please sign in to comment.