Interface StateFactory
- All Known Implementing Classes:
DefaultStateFactory
Generates a state parameter.
Auth Request state parameter
state: Opaque value used to maintain state between the request and the callback. Typically, Cross-Site Request Forgery (CSRF, XSRF) mitigation is done by cryptographically binding the value of this parameter with a browser cookie.
- Since:
- 1.2.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionbuildState
(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response, @Nullable AuthorizationRequest authorizationRequest)
-
Method Details
-
buildState
String buildState(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response, @Nullable @Nullable AuthorizationRequest authorizationRequest) - Parameters:
request
- The original request prior redirectresponse
- The authorization redirect responseauthorizationRequest
- theAuthorizationRequest
- Returns:
- A state parameter. An opaque value used to maintain state between the request and the callback.
-