public interface StatePersistence
Modifier and Type | Method and Description |
---|---|
void |
persistState(io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.MutableHttpResponse response,
State state)
Persists the state for later retrieval to allow validation.
|
java.util.Optional<State> |
retrieveState(io.micronaut.http.HttpRequest<?> request)
Retrieves and removes the state from persistence.
|
java.util.Optional<State> retrieveState(io.micronaut.http.HttpRequest<?> request)
request
- The requestvoid persistState(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response, State state)
request
- The login requestresponse
- The authorization redirect responsestate
- The state to persist