call code iff user is logged in
call code iff user is logged in
Disable a route without having to comment out the entry in the routes file.
Disable a route without having to comment out the entry in the routes file. Useful for when we want to keep the code around but we don't want users to have access to it.
call code if user has right permission for resource
call code if user has right permission for resource
Use when you want to require the user to be logged in on a private server or the server is public.
Use when you want to require the user to be logged in on a private server or the server is public.
call code if user is a server admin
call code if user is a server admin
get user if logged in
get user if logged in
Default method when the failure is due to not being logged in.
Default method when the failure is due to not being logged in.
Requires no args, provides the generic message "You must be logged in to perform that action.".
Message specific method when the failure is due to not being logged in.
Message specific method when the failure is due to not being logged in. Ideally, the original url will be set as a cookie so that securesocial can redirect back to the user's original page.
Client should pass in their own message to be displayed. If the message is null or empty, it will default to the generic message "You must be logged in to perform that action.".
A String that will be the specific error message passed to the login panel
The originating window href for the failed authentication
Return user based on request object
Return user based on request object
Redirect request that comes in when a user is logged in but does not have the appropriate permissions for accessing a specific location.
Redirect request that comes in when a user is logged in but does not have the appropriate permissions for accessing a specific location.
Client may pass in their own message to be displayed. If the message is null or empty, it will default to the generic message "You do not have the permissions required to view that location."
A String that will be the specific error message passed to the view to display
Deny user request to access resource.
Utility controller to be called, typically as a redirect, from the client side when an AJAX error is received, or when there are errors with authentication or permissions within the normal controller flow.