Action that ensures the user is logged in and validated.
This action is for API / XHR type requests where the user can't be sent to the auth provider for auth. In the
cases where the auth is not valid repsonce codes are sent to the requesting app and the javascript that initiated
the request should handle these appropriately
If the user is not authed then a 401 response is sent, if the auth has expired then a 419 response is sent, if
the user is authed but not allowed to perform the action a 403 is sent
Action that ensures the user is logged in and validated.
This action is for API / XHR type requests where the user can't be sent to the auth provider for auth. In the cases where the auth is not valid repsonce codes are sent to the requesting app and the javascript that initiated the request should handle these appropriately
If the user is not authed then a 401 response is sent, if the auth has expired then a 419 response is sent, if the user is authed but not allowed to perform the action a 403 is sent