Skip to content

Commit

Permalink
Merge pull request #60 from ctriant/fix-refresh-grant
Browse files Browse the repository at this point in the history
Fix refresh grant on access token helper after fedservice
  • Loading branch information
rohe authored Apr 4, 2023
2 parents 66ee608 + b809758 commit 24519cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/idpyoidc/server/oidc/token_helper/access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def process_request(self, req: Union[Message, dict], **kwargs):
if (
issue_refresh
and "refresh_token" in _supports_minting
and "refresh_token" in grant_types_supported
):
try:
refresh_token = self._mint_token(
Expand Down
3 changes: 1 addition & 2 deletions tests/test_server_31_oauth2_introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,7 @@ def test_wrong_aud(self):
auth_req = AUTH_REQ.copy()
auth_req["client_id"] = "client_2"
access_token = self._get_access_token(auth_req)

_context = self.introspection_endpoint.server_get("endpoint_context")
_context = self.introspection_endpoint.upstream_get("endpoint_context")

_req = self.introspection_endpoint.parse_request(
{
Expand Down

0 comments on commit 24519cc

Please sign in to comment.