This action ensures that the user is authenticated and their token is valid.
This action ensures that the user is authenticated and their token is valid. Is a user is not logged in or their token has expired then they will be authenticated.
The AuthenticatedRequest will always have an identity.
A Play session key that stores the target URL that was being accessed when redirected for authentication
This action should be used for any login screen.
This action should be used for any login screen.
It is similar to NonAuthAction, but does not send users for re-authentication if their session has expired and instead appears as if the user is logged out.
This action can be used for pages where login is optional.
This action can be used for pages where login is optional. If no user is logged in then the AuthenticatedRequest will have no identity. If a user has an expired session then they will be sent for re-authentication. If the user is valid (and expired sessions are re-authenticated) then the AuthenticatedRequest will have an identity.
Helper method that deals with sending a client for authentication.
Helper method that deals with sending a client for authentication. Typically this should store the target URL and redirect to the loginTarget. There shouldn't really be any need to override this.