Skip to content

Commit

Permalink
Fixed import and test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohe committed Apr 7, 2022
1 parent ccf2e05 commit 3c193ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/idpyoidc/server/oidc/backchannel_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_server_06_grant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3c193ae

Please sign in to comment.