Class IntrospectionController
- java.lang.Object
-
- io.micronaut.security.endpoints.introspection.IntrospectionController
-
@Controller("${micronaut.security.endpoints.introspection.path:/token_info}") @Secured("isAuthenticated()") public class IntrospectionController extends java.lang.Object- Since:
- 2.1.0
- See Also:
- OAuth 2.0 Token Introspection.
-
-
Field Summary
Fields Modifier and Type Field Description protected IntrospectionProcessorprocessor
-
Constructor Summary
Constructors Constructor Description IntrospectionController(IntrospectionProcessor processor)Deprecated.IntrospectionController(IntrospectionProcessor processor, io.micronaut.json.JsonMapper jsonMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>>echo(Authentication authentication, io.micronaut.http.HttpRequest<?> request)org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>>tokenInfo(@Valid @NotNull IntrospectionRequest introspectionRequest, io.micronaut.http.HttpRequest<?> request)
-
-
-
Field Detail
-
processor
protected final IntrospectionProcessor processor
-
-
Constructor Detail
-
IntrospectionController
@Deprecated public IntrospectionController(IntrospectionProcessor processor)
Deprecated.- Parameters:
processor- Introspection Processor
-
IntrospectionController
@Inject public IntrospectionController(IntrospectionProcessor processor, io.micronaut.json.JsonMapper jsonMapper)
- Parameters:
processor- Introspection ProcessorjsonMapper- the JSON mapper- Since:
- 3.3
-
-
Method Detail
-
tokenInfo
@Post @Consumes("application/x-www-form-urlencoded") @SingleResult public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> tokenInfo(@NonNull @Body @Valid @NotNull @Valid @NotNull IntrospectionRequest introspectionRequest, @NonNull io.micronaut.http.HttpRequest<?> request)- Parameters:
introspectionRequest- Introspection Requestrequest- HTTP Request- Returns:
- The HTTP Response containing an introspection response in the body
-
echo
@Get @SingleResult public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> echo(@NonNull Authentication authentication, @NonNull io.micronaut.http.HttpRequest<?> request)- Parameters:
authentication- Currently authenticated userrequest- HTTP Request- Returns:
- The HTTP Response containing an introspection response in the body
-
-