Remove non-standard code_challenge_method from token request for IDP (#12473)

Closes #12141
This commit is contained in:
Lex Cao 2022-06-15 02:46:35 +08:00 committed by GitHub
parent 60702cfb44
commit 06dfb45c39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,8 +372,8 @@ public abstract class AbstractOAuth2IdentityProvider<C extends OAuth2IdentityPro
}
/**
* Get JSON property as text. JSON numbers and booleans are converted to text. Empty string is converted to null.
*
* Get JSON property as text. JSON numbers and booleans are converted to text. Empty string is converted to null.
*
* @param jsonNode to get property from
* @param name of property to get
* @return string value of the property or null.
@ -570,12 +570,11 @@ public abstract class AbstractOAuth2IdentityProvider<C extends OAuth2IdentityPro
}
tokenRequest.param(OAuth2Constants.CODE_VERIFIER, brokerCodeChallenge);
tokenRequest.param(OAuth2Constants.CODE_CHALLENGE_METHOD, getConfig().getPkceMethod());
}
return authenticateTokenRequest(tokenRequest);
}
}
protected String getProfileEndpointForValidation(EventBuilder event) {