Class DefaultStateValidator
java.lang.Object
io.micronaut.security.oauth2.endpoint.authorization.state.validation.DefaultStateValidator
- All Implemented Interfaces:
StateValidator
State validator implementation. Relies on a state persistence bean.
- Since:
- 1.2.0
- Author:
- James Kleeh
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultStateValidator
- Parameters:
statePersistence
- The state persistence bean
-
-
Method Details
-
validate
public void validate(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request, @Nullable @Nullable State state) throws InvalidStateException Description copied from interface:StateValidator
Validates the provided state.- Specified by:
validate
in interfaceStateValidator
- Parameters:
request
- The HTTP Requeststate
- The state value returned by the authorization server- Throws:
InvalidStateException
- If the state validation failed
-