Class IntrospectionController

java.lang.Object
io.micronaut.security.endpoints.introspection.IntrospectionController

@Requires(classes=io.micronaut.http.annotation.Controller.class) @Controller("${micronaut.security.endpoints.introspection.path:/token_info}") @Secured("isAuthenticated()") public class IntrospectionController extends Object
Since:
2.1.0
Author:
Sergio del Amo
See Also:
  • Field Details

  • Constructor Details

    • IntrospectionController

      public IntrospectionController(IntrospectionProcessor processor)
      Parameters:
      processor - Introspection Processor
      Since:
      3.3
  • Method Details

    • tokenInfo

      @Post @Consumes("application/x-www-form-urlencoded") @SingleResult public org.reactivestreams.Publisher<IntrospectionResponse> tokenInfo(@NonNull @Body @Valid @NotNull @NonNull @Valid @NotNull IntrospectionRequest introspectionRequest, @NonNull @NonNull io.micronaut.http.HttpRequest<?> request)
      Parameters:
      introspectionRequest - Introspection Request
      request - HTTP Request
      Returns:
      The HTTP Response containing an introspection response in the body
    • echo

      @Get @SingleResult public org.reactivestreams.Publisher<IntrospectionResponse> echo(@NonNull @NonNull Authentication authentication, @NonNull @NonNull io.micronaut.http.HttpRequest<?> request)
      Parameters:
      authentication - Currently authenticated user
      request - HTTP Request
      Returns:
      The HTTP Response containing an introspection response in the body