Class OpenIDAuthenticators.AuthorizationCodeWithPKCEClient

java.lang.Object
com.ocient.auth.OpenIDAuthenticators.AuthorizationCodeWithPKCEClient
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
OpenIDAuthenticators

public static class OpenIDAuthenticators.AuthorizationCodeWithPKCEClient
extends Object
implements Closeable
The PKCE-enhanced Authorization Code Flow introduces a secret created by the calling application that can be verified by the authorization server; this secret is called the Code Verifier. Additionally, the calling app creates a transform value of the Code Verifier called the Code Challenge and sends this value over HTTPS to retrieve an Authorization Code. This way, a malicious attacker can only intercept the Authorization Code, and they cannot exchange it for a token without the Code Verifier.