java.lang.Object
io.micronaut.security.oauth2.endpoint.authorization.pkce.DefaultPkceFactory
All Implemented Interfaces:
PkceFactory

@Singleton public class DefaultPkceFactory extends Object implements PkceFactory
Generates a Proof Key for Code Exchange and persists.
Since:
3.9.0
Author:
Sergio del Amo
  • Constructor Details

  • Method Details

    • buildChallenge

      @NonNull public @NonNull Optional<PkceChallenge> buildChallenge(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request, @NonNull @NonNull io.micronaut.http.MutableHttpResponse<?> response, @Nullable @Nullable List<String> supportedChallengeMethods)
      Specified by:
      buildChallenge in interface PkceFactory
      Parameters:
      request - The original request prior redirect
      response - The authorization redirect response
      supportedChallengeMethods - Challenge methods supported by the authorization server
      Returns:
      A state parameter. An opaque value used to maintain state between the request and the callback.