the session cache to be used
authentication configuration
the database to be used for querying local users
Authorized action generator, for implementing routes/services that require authentication and authorization.
Authorized action generator, for implementing routes/services that require authentication and authorization.
the group the user must be a member of in order to access the protected resource
the handler to be executed if the user is allowed to access the resource
the handler to be executed if the user has not authenticated
the handler to be executed if the user is not allowed to access the resource
the generated action
Login action generator, for implementing user login handling.
Login action generator, for implementing user login handling.
the handler to execute after successful authentication/login or if the user is already logged-in
the handler to execute if the user fails to authenticate/login
the handler to execute when the user needs to authenticate/login
the generated action
Logout action generator, for implementing user logout handling.
Logout action generator, for implementing user logout handling.
the URI to redirect to, after the logout has completed (if any); defaults based on implementation
the generated action
Public action generator, for implementing routes/services that do NOT require authentication and authorization.
Public action generator, for implementing routes/services that do NOT require authentication and authorization.
the handler to be executed
the generated action
(Since version 3.0.0) Use TOO_MANY_REQUESTS instead
(Since version 3.0.0) Use TooManyRequests instead
Play controller definition for implementing user-facing services.
Notes: - Uses a local user database as an authentication and authorization provider. - Provides action generators for user login and logout, public and secure services/routes.