@Secured(value: permitAll) class LogoutController extends java.lang.Object
| Type | Name and description |
|---|---|
RedirectStrategy |
redirectStrategyDependency injection for RedirectStrategy. |
| Constructor and description |
|---|
LogoutController() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.util.Map |
getAllowedMethods()Declares the POST-only restriction (active by default through logout.postOnly) so tooling that inspects a controller's
allowedMethods — like the create-app welcome page — can tell
that the action is not reachable with GET. |
|
java.lang.Object |
index()Index action. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Dependency injection for RedirectStrategy.
Declares the POST-only restriction (active by default through
logout.postOnly) so tooling that inspects a controller's
allowedMethods — like the create-app welcome page — can tell
that the action is not reachable with GET. Enforcement itself stays
in the action, which honors the config at request time.
Index action. Redirects to the Spring security logout uri.