Interface PkcePersistence
- All Known Implementing Classes:
CookiePkcePersistence
,SessionPkcePersistence
public interface PkcePersistence
Persists the Proof of Key Exchange (PKCE) for later retrieval.
- Since:
- 3.9.0
- Author:
- Nemanja Mikic
-
Method Summary
Modifier and TypeMethodDescriptionvoid
persistPkce
(@NonNull io.micronaut.http.HttpRequest<?> request, @NonNull io.micronaut.http.MutableHttpResponse<?> response, @NonNull Pkce pkce) Persists the PKCE for later retrieval.retrieveCodeVerifier
(@NonNull io.micronaut.http.HttpRequest<?> request) Retreive the code verifier.
-
Method Details
-
retrieveCodeVerifier
@NonNull @NonNull Optional<String> retrieveCodeVerifier(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request) Retreive the code verifier.- Parameters:
request
- The request- Returns:
- The optional PKCE code verifier
-
persistPkce
void persistPkce(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request, @NonNull @NonNull io.micronaut.http.MutableHttpResponse<?> response, @NonNull @NonNull Pkce pkce) Persists the PKCE for later retrieval.- Parameters:
request
- The login requestresponse
- The authorization redirect responsepkce
- The PKCE to persist
-