Skip to content

Commit

Permalink
bump idpyoidc to v4.1.0 (#56)
Browse files Browse the repository at this point in the history
* fix: bump idpyoidc to v4.1.0

* fix: tests
  • Loading branch information
elisanp authored Sep 30, 2024
1 parent f626481 commit abd97fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def readme():
install_requires=[
"satosa>=8.0.0",
"pymongo>=3.11,<5.0",
"idpyoidc>=2.1.0,<2.2.0",
"idpyoidc>=4.1.0,<4.2.0",
],
)
6 changes: 3 additions & 3 deletions tests/test_oidcop.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def test_handle_authn_response_authcode_flow(self, context, frontend, authn_req)
_access_token = _token_resp['access_token']
context.request_authorization = f"{_token_resp['token_type']} {_access_token[:-2]}"
userinfo_resp = frontend.userinfo_endpoint(context)
assert userinfo_resp.status == "403"
assert userinfo_resp.status == "403 Forbidden"

# Test UserInfo endpoint
context.request = {}
Expand Down Expand Up @@ -683,7 +683,7 @@ def test_fault_token_endpoint(self, context, frontend):
basic_auth = urlsafe_b64encode(credentials.encode("utf-8")).decode("utf-8")
context.request_authorization = f"Basic {basic_auth}"
token_resp = frontend.token_endpoint(context)
assert token_resp.status == '403'
assert token_resp.status == '403 Forbidden'
assert json.loads(token_resp.message)['error'] == 'invalid_request'

def test_load_cdb_basicauth(self, context, frontend):
Expand Down Expand Up @@ -807,7 +807,7 @@ def test_refresh_token(self, context, frontend, authn_req):
# Test FAULTY refresh_token
context.request["refresh_token"] = _res.get('refresh_token')[:-2]
refresh_resp = frontend.token_endpoint(context)
assert refresh_resp.status == "403"
assert refresh_resp.status == "403 Forbidden"
_res = json.loads(refresh_resp.message)
assert _res['error'] == "invalid_grant"
assert _res['error_description'] == "Invalid refresh token"
Expand Down

0 comments on commit abd97fd

Please sign in to comment.