Skip to content

Commit 415b409

Browse files
committed
test: add logout arguments to satosa/frontends/test_openid_connect to fix tests
1 parent fa18536 commit 415b409

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/satosa/frontends/test_openid_connect.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def frontend_config_with_extra_id_token_claims(self, signing_key_path):
8888

8989
def create_frontend(self, frontend_config):
9090
# will use in-memory storage
91-
instance = OpenIDConnectFrontend(lambda ctx, req: None, INTERNAL_ATTRIBUTES,
91+
instance = OpenIDConnectFrontend(lambda ctx, req: None, lambda ctx, req: None,
92+
INTERNAL_ATTRIBUTES,
9293
frontend_config, BASE_URL, "oidc_frontend")
9394
instance.register_endpoints(["foo_backend"])
9495
return instance
@@ -98,6 +99,7 @@ def create_frontend_with_extra_scopes(self, frontend_config_with_extra_scopes):
9899
internal_attributes_with_extra_scopes = copy.deepcopy(INTERNAL_ATTRIBUTES)
99100
internal_attributes_with_extra_scopes["attributes"].update(EXTRA_CLAIMS)
100101
instance = OpenIDConnectFrontend(
102+
lambda ctx, req: None,
101103
lambda ctx, req: None,
102104
internal_attributes_with_extra_scopes,
103105
frontend_config_with_extra_scopes,
@@ -447,7 +449,7 @@ def test_token_endpoint_with_extra_claims(self, context, frontend_config_with_ex
447449

448450
def test_token_endpoint_issues_refresh_tokens_if_configured(self, context, frontend_config, authn_req):
449451
frontend_config["provider"]["refresh_token_lifetime"] = 60 * 60 * 24 * 365
450-
frontend = OpenIDConnectFrontend(lambda ctx, req: None, INTERNAL_ATTRIBUTES,
452+
frontend = OpenIDConnectFrontend(lambda ctx, req: None, lambda ctx, req: None, INTERNAL_ATTRIBUTES,
451453
frontend_config, BASE_URL, "oidc_frontend")
452454
frontend.register_endpoints(["test_backend"])
453455

0 commit comments

Comments
 (0)