Skip to content

Commit 24519cc

Browse files
authored
Merge pull request #60 from ctriant/fix-refresh-grant
Fix refresh grant on access token helper after fedservice
2 parents 66ee608 + b809758 commit 24519cc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/idpyoidc/server/oidc/token_helper/access_token.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def process_request(self, req: Union[Message, dict], **kwargs):
119119
if (
120120
issue_refresh
121121
and "refresh_token" in _supports_minting
122-
and "refresh_token" in grant_types_supported
123122
):
124123
try:
125124
refresh_token = self._mint_token(

tests/test_server_31_oauth2_introspection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@ def test_wrong_aud(self):
498498
auth_req = AUTH_REQ.copy()
499499
auth_req["client_id"] = "client_2"
500500
access_token = self._get_access_token(auth_req)
501-
502-
_context = self.introspection_endpoint.server_get("endpoint_context")
501+
_context = self.introspection_endpoint.upstream_get("endpoint_context")
503502

504503
_req = self.introspection_endpoint.parse_request(
505504
{

0 commit comments

Comments
 (0)