@Singleton public class CookiePkcePersistence extends CookiePersistence implements PkcePersistence
cookieConfiguration
Constructor and Description |
---|
CookiePkcePersistence(CookiePkcePersistenceConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
persistPkce(io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.MutableHttpResponse<?> response,
Pkce pkce)
Persists the PKCE for later retrieval.
|
java.util.Optional<java.lang.String> |
retrieveCodeVerifier(io.micronaut.http.HttpRequest<?> request)
Retrieve the code verifier and removes it from the session if present.
|
retrieveValue, save
public CookiePkcePersistence(CookiePkcePersistenceConfiguration configuration)
configuration
- The cookie configuration@NonNull public java.util.Optional<java.lang.String> retrieveCodeVerifier(@NonNull io.micronaut.http.HttpRequest<?> request)
retrieveCodeVerifier
in interface PkcePersistence
request
- The requestpublic void persistPkce(@NonNull io.micronaut.http.HttpRequest<?> request, @NonNull io.micronaut.http.MutableHttpResponse<?> response, @NonNull Pkce pkce)
PkcePersistence
persistPkce
in interface PkcePersistence
request
- The login requestresponse
- The authorization redirect responsepkce
- The PKCE to persist