Skip to content

Commit fca3ae2

Browse files
committed
Being explicit on parameters. Fixed tests, spelling error.
1 parent 712625e commit fca3ae2

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def run_tests(self):
6565
"idpyoidc/server/oauth2", "idpyoidc/server/oauth2/add_on",
6666
"idpyoidc/server/oidc", "idpyoidc/server/oidc/add_on",
6767
"idpyoidc/client/oidc", "idpyoidc/client/oidc/add_on",
68-
"idpyoidc/client/provider",
68+
"idpyoidc/client/provider", "idpyoidc/actor",
6969
"idpyoidc/client/oauth2", "idpyoidc/client/oauth2/add_on",
7070
"idpyoidc/client/oauth2/client_credentials"
7171
],

src/idpyoidc/client/oidc/backchannel_authentication.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class BackChannelAuthentication(Service):
1717
response_body_type = 'json'
1818

1919
def __init__(self, client_get, client_authn_factory=None, conf=None, **kwargs):
20-
super().__init__(client_get, client_authn_factory, conf=conf, **kwargs)
20+
super().__init__(client_get=client_get, conf=conf,
21+
client_authn_factory=client_authn_factory, **kwargs)
2122
self.default_request_args = {'scope': ['openid']}
2223
self.pre_construct = []
2324
self.post_construct = []

tests/test_server_17_client_authn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ class Mock:
711711

712712
mock = Mock()
713713
conf = dict(CONF)
714-
conf["client_authn_method"] = {"custom": MagicMock(return_value=mock)}
714+
conf["client_authn_methods"] = {"custom": MagicMock(return_value=mock)}
715715
conf["endpoint"]["registration"]["kwargs"]["client_authn_method"] = ["custom"]
716716
server = Server(conf=conf, keyjar=KEYJAR)
717717
server.endpoint_context.cdb[client_id] = {"client_secret": client_secret}

tests/test_server_20d_client_authn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ class Mock:
666666

667667
mock = Mock()
668668
conf = dict(CONF)
669-
conf["client_authn_method"] = {"custom": MagicMock(return_value=mock)}
669+
conf["client_authn_methods"] = {"custom": MagicMock(return_value=mock)}
670670
conf["endpoint"]["registration"]["kwargs"]["client_authn_method"] = ["custom"]
671671
server = Server(conf=conf, keyjar=KEYJAR)
672672
server.endpoint_context.cdb[client_id] = {"client_secret": client_secret}

tests/test_y_actor_01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,4 +344,4 @@ def test_query(self):
344344

345345
_ninfo = self.actor_1.do_client_notification(_not_req["body"],
346346
http_info={"headers": _not_req["headers"]})
347-
assert _ninfo
347+
assert _ninfo is None

0 commit comments

Comments
 (0)