public interface NoncePersistence
Modifier and Type | Method and Description |
---|---|
void |
persistNonce(io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.MutableHttpResponse response,
java.lang.String nonce)
Persists the nonce for later retrieval to allow validation.
|
java.util.Optional<java.lang.String> |
retrieveNonce(io.micronaut.http.HttpRequest<?> request)
Retrieves and removes the nonce from persistence.
|
java.util.Optional<java.lang.String> retrieveNonce(io.micronaut.http.HttpRequest<?> request)
request
- The requestvoid persistNonce(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response, java.lang.String nonce)
request
- The login requestresponse
- The authorization redirect responsenonce
- The nonce to persist