| Constructor and Description |
|---|
LogoutController(LogoutHandler logoutHandler,
io.micronaut.context.event.ApplicationEventPublisher eventPublisher,
LogoutControllerConfiguration logoutControllerConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected io.micronaut.http.MutableHttpResponse<?> |
handleLogout(io.micronaut.http.HttpRequest<?> request,
Authentication authentication) |
io.micronaut.http.MutableHttpResponse<?> |
index(io.micronaut.http.HttpRequest<?> request,
Authentication authentication)
POST endpoint for Logout Controller.
|
io.micronaut.http.MutableHttpResponse<?> |
indexGet(io.micronaut.http.HttpRequest<?> request,
Authentication authentication)
GET endpoint for Logout Controller.
|
@Inject
public LogoutController(@Nullable
LogoutHandler logoutHandler,
io.micronaut.context.event.ApplicationEventPublisher eventPublisher,
LogoutControllerConfiguration logoutControllerConfiguration)
logoutHandler - A collaborator which helps to build HTTP response if user logout.eventPublisher - The application event publisherlogoutControllerConfiguration - Configuration for the Logout controller@Consumes(value={"application/x-www-form-urlencoded","application/json"})
@Post
public io.micronaut.http.MutableHttpResponse<?> index(io.micronaut.http.HttpRequest<?> request,
@Nullable
Authentication authentication)
request - The HttpRequest being executedauthentication - Authentication instance for current user@Get
public io.micronaut.http.MutableHttpResponse<?> indexGet(io.micronaut.http.HttpRequest<?> request,
@Nullable
Authentication authentication)
request - The HttpRequest being executedauthentication - Authentication instance for current userprotected io.micronaut.http.MutableHttpResponse<?> handleLogout(io.micronaut.http.HttpRequest<?> request,
@Nullable
Authentication authentication)
request - The HttpRequest being executedauthentication - Authentication instance for current user