From 859c1081cd070389e0ced7893e48a9a98e1e662e Mon Sep 17 00:00:00 2001 From: Ali Haider Date: Mon, 30 May 2022 14:28:43 +0500 Subject: [PATCH 1/2] "code_challenge_methods_supported" added (https://datatracker.ietf.org/doc/html/rfc8414#section-2) --- src/oic/oic/message.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/oic/oic/message.py b/src/oic/oic/message.py index d6bda692..72f48991 100644 --- a/src/oic/oic/message.py +++ b/src/oic/oic/message.py @@ -14,6 +14,7 @@ from jwkest.jwe import factory as JWE_factory from jwkest.jwt import JWT +from oic import CC_METHOD from oic.exception import InvalidRequest from oic.exception import IssuerMismatch from oic.exception import MessageException @@ -886,6 +887,7 @@ class ProviderConfigurationResponse(Message): "request_object_encryption_enc_values_supported": OPTIONAL_LIST_OF_STRINGS, "token_endpoint_auth_methods_supported": OPTIONAL_LIST_OF_STRINGS, "token_endpoint_auth_signing_alg_values_supported": OPTIONAL_LIST_OF_STRINGS, + "code_challenge_methods_supported": REQUIRED_LIST_OF_STRINGS, "display_values_supported": OPTIONAL_LIST_OF_STRINGS, "claim_types_supported": OPTIONAL_LIST_OF_STRINGS, "claims_supported": OPTIONAL_LIST_OF_STRINGS, @@ -917,6 +919,7 @@ class ProviderConfigurationResponse(Message): "frontchannel_logout_session_supported": False, "backchannel_logout_supported": False, "backchannel_logout_session_supported": False, + "code_challenge_methods_supported": list(CC_METHOD.keys()) } def verify(self, **kwargs): From a0dd0f9d0469c34f540d7e9cd75ace0d45dc4d71 Mon Sep 17 00:00:00 2001 From: Ali Haider Date: Mon, 30 May 2022 14:40:34 +0500 Subject: [PATCH 2/2] Updated CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 255d7cd0..d7809be4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ The format is based on the [KeepAChangeLog] project. ## 1.4.0 [2022-05-23] +### Added +- [#815] New Provider Configuration `code_challenge_methods_supported` added + ### Changed - [#810] Drop python 3.6 support @@ -17,6 +20,7 @@ The format is based on the [KeepAChangeLog] project. [#810]: https://github.com/OpenIDC/pyoidc/pull/810 [#812]: https://github.com/OpenIDC/pyoidc/pull/812 +[#815]: https://github.com/OpenIDC/pyoidc/pull/815 ## 1.3.0 [2021-07-09]