@Controller(value="${micronaut.security.endpoints.introspection.path:/token_info}") @Secured(value="isAuthenticated()") public class IntrospectionController extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IntrospectionProcessor |
processor |
Constructor and Description |
---|
IntrospectionController(IntrospectionProcessor processor)
Deprecated.
|
IntrospectionController(IntrospectionProcessor processor,
io.micronaut.json.JsonMapper jsonMapper) |
Modifier and Type | Method and 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) |
protected final IntrospectionProcessor processor
@Deprecated public IntrospectionController(IntrospectionProcessor processor)
IntrospectionController(IntrospectionProcessor, JsonMapper)
insteadprocessor
- Introspection Processor@Inject public IntrospectionController(IntrospectionProcessor processor, io.micronaut.json.JsonMapper jsonMapper)
processor
- Introspection ProcessorjsonMapper
- the JSON mapper@Post @Consumes(value="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)
introspectionRequest
- Introspection Requestrequest
- HTTP Request@Get @SingleResult public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> echo(@NonNull Authentication authentication, @NonNull io.micronaut.http.HttpRequest<?> request)
authentication
- Currently authenticated userrequest
- HTTP Request