* This set of routes deals with authentication with the application through SAML and application login.
*/
classAuthControllerextendsApiController
{
protectedCookieJar$cookieJar;
...
...
@@ -30,15 +36,31 @@ class AuthController extends ApiController
}
/**
* Login request to application
*
* This endpoint returns a token that can be used in other endpoints as well as setting a cookie.
* One does not need to make a request to this if they have a valid token.
*
* @bodyParam email string required The email of the login user. Example: sithL0rd@senate.com
* @bodyParam password string required The password of the user to login as. Example: I am the senate
*
* @response 422 {"message":"The given data was invalid.","errors":{"email":["The email field is required."],"password":["The password field is required."]}}