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