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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<IntrospectionResponse>
echo
(@NonNull Authentication authentication, @NonNull io.micronaut.http.HttpRequest<?> request) org.reactivestreams.Publisher<IntrospectionResponse>
tokenInfo
(@NonNull @Valid @NotNull IntrospectionRequest introspectionRequest, @NonNull io.micronaut.http.HttpRequest<?> request)
-
Field Details
-
processor
-
-
Constructor Details
-
IntrospectionController
- 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 Requestrequest
- 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 userrequest
- HTTP Request- Returns:
- The HTTP Response containing an introspection response in the body
-