All Known Implementing Classes:
DefaultStateValidator

@DefaultImplementation(DefaultStateValidator.class) public interface StateValidator
Validates a state parameter. Auth Request state parameter
Since:
1.2.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(@NonNull io.micronaut.http.HttpRequest<?> request, @Nullable State state)
    Validates the provided state.
  • Method Details

    • validate

      void validate(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request, @Nullable @Nullable State state) throws InvalidStateException
      Validates the provided state.
      Parameters:
      request - The HTTP Request
      state - The state value returned by the authorization server
      Throws:
      InvalidStateException - If the state validation failed