@Singleton public class DefaultPkceFactory extends java.lang.Object implements PkceFactory
Constructor and Description |
---|
DefaultPkceFactory(java.util.List<PkceGenerator> generators,
PkcePersistence persistence) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<PkceChallenge> |
buildChallenge(io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.MutableHttpResponse<?> response,
java.util.List<java.lang.String> supportedChallengeMethods) |
public DefaultPkceFactory(@NonNull java.util.List<PkceGenerator> generators, @NonNull PkcePersistence persistence)
@NonNull public java.util.Optional<PkceChallenge> buildChallenge(@NonNull io.micronaut.http.HttpRequest<?> request, @NonNull io.micronaut.http.MutableHttpResponse<?> response, @Nullable java.util.List<java.lang.String> supportedChallengeMethods)
buildChallenge
in interface PkceFactory
request
- The original request prior redirectresponse
- The authorization redirect responsesupportedChallengeMethods
- Challenge methods supported by the authorization server