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 Type
    Method
    Description
    void
    persistPkce(@NonNull io.micronaut.http.HttpRequest<?> request, @NonNull io.micronaut.http.MutableHttpResponse<?> response, @NonNull Pkce pkce)
    Persists the PKCE for later retrieval.
    @NonNull Optional<String>
    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 request
      response - The authorization redirect response
      pkce - The PKCE to persist