From ac3dd3ea6ed321e9275f5f80cd3ef4f94d08b1bf Mon Sep 17 00:00:00 2001 From: asha15 <165079T@uom.lk> Date: Wed, 5 Jul 2023 08:58:10 +0530 Subject: [PATCH] add method comment --- .../identity/oauth/endpoint/authz/OAuth2AuthzEndpoint.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/authz/OAuth2AuthzEndpoint.java b/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/authz/OAuth2AuthzEndpoint.java index 03e668b76d..da04753f4a 100644 --- a/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/authz/OAuth2AuthzEndpoint.java +++ b/components/org.wso2.carbon.identity.oauth.endpoint/src/main/java/org/wso2/carbon/identity/oauth/endpoint/authz/OAuth2AuthzEndpoint.java @@ -2267,6 +2267,12 @@ private String validatePKCEParameters(OAuthMessage oAuthMessage, OAuth2ClientVal return null; } + /* Check if PKCE is mandatory for the application. + * + * @param oAuthMessage OAuthMessage + * @param validationResponse client validation response. + * @return boolean Returns whether PKCE is mandatory or not. + */ private boolean isPKCEMandatory(OAuthMessage oAuthMessage, OAuth2ClientValidationResponseDTO validationResponse) { return validationResponse.isPkceMandatory() && !(Boolean.FALSE.equals