From f8824ee0d67095e11938e980f1a740a6b7510ecc Mon Sep 17 00:00:00 2001 From: Vasily Chekalkin Date: Wed, 6 Nov 2024 14:58:05 +1100 Subject: [PATCH] Fix device flow authorization endpoint Device authorization endpoint is `device_authorization_endpoint` as per https://www.rfc-editor.org/rfc/rfc8628.html#section-4 --- src/oic/extension/device_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oic/extension/device_flow.py b/src/oic/extension/device_flow.py index 121a95de..094a7b63 100644 --- a/src/oic/extension/device_flow.py +++ b/src/oic/extension/device_flow.py @@ -94,7 +94,7 @@ def authorization_request(self, scope=""): req["scope"] = scope http_response = self.host.http_request( - self.host.provider_info["device_endpoint"], "POST", req.to_urlencoded() + self.host.provider_info["device_authorization_endpoint"], "POST", req.to_urlencoded() ) response = self.host.parse_request_response(