From d01d0180c855e43979aee42e19a5a0b3336b70ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mus=C3=ADlek?= Date: Thu, 23 Mar 2023 16:25:48 +0100 Subject: [PATCH] Add authn_method to Consumer.complete() --- src/oic/oic/consumer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/oic/oic/consumer.py b/src/oic/oic/consumer.py index f246820a..5c0eca92 100644 --- a/src/oic/oic/consumer.py +++ b/src/oic/oic/consumer.py @@ -461,7 +461,7 @@ def parse_authz( self.verify_id_token(idt, self.authz_req.get(_state or atr["state"])) return aresp, atr, idt - def complete(self, state): + def complete(self, state, authn_method="client_secret_basic"): """ Do the access token request, the last step in a code flow. @@ -485,7 +485,10 @@ def complete(self, state): raise PyoidcError("Nothing to authenticate with") resp = self.do_access_token_request( - state=state, request_args=args, http_args=http_args + state=state, + request_args=args, + http_args=http_args, + authn_method=authn_method, ) logger.info("Access Token Response: %s" % sanitize(resp))