From 3c193ae87493f6e4eed4bd7c2565e74ae97cb506 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Thu, 7 Apr 2022 09:12:25 +0200 Subject: [PATCH] Fixed import and test. --- src/idpyoidc/server/oidc/backchannel_authentication.py | 2 -- tests/test_server_06_grant.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/idpyoidc/server/oidc/backchannel_authentication.py b/src/idpyoidc/server/oidc/backchannel_authentication.py index 6c11cf52..dc4a0081 100644 --- a/src/idpyoidc/server/oidc/backchannel_authentication.py +++ b/src/idpyoidc/server/oidc/backchannel_authentication.py @@ -17,11 +17,9 @@ from idpyoidc.server import EndpointContext from idpyoidc.server.client_authn import ClientSecretBasic from idpyoidc.server.exception import NoSuchAuthentication -from idpyoidc.server.exception import BearerTokenAuthenticationError from idpyoidc.server.oidc.token_helper import AccessTokenHelper from idpyoidc.server.session.token import MintingNotAllowed from idpyoidc.server.util import execute -from oidcop.exception import ToOld logger = logging.getLogger(__name__) diff --git a/tests/test_server_06_grant.py b/tests/test_server_06_grant.py index 27c0c18c..b5a08725 100644 --- a/tests/test_server_06_grant.py +++ b/tests/test_server_06_grant.py @@ -414,13 +414,13 @@ def test_get_spec(self): token_handler=TOKEN_HANDLER["access_token"], based_on=code, scope=["openid", "email", "eduperson"], - claims={"userinfo": {"given_name": None, "eduperson_affiliation": None}}, + claims=["given_name", "eduperson_affiliation"] ) spec = grant.get_spec(access_token) assert set(spec.keys()) == {"scope", "claims", "resources"} assert spec["scope"] == ["openid", "email", "eduperson"] - assert spec["claims"] == {"userinfo": {"given_name": None, "eduperson_affiliation": None}} + assert spec["claims"] == {'eduperson_affiliation': None, 'given_name': None} assert spec["resources"] == ["https://api.example.com"] def test_get_usage_rules(self):