AuthenticationService
class AuthenticationService (View source)
Starts or ends a session with a flash message, then redirects to login; API requests get a 401 JSON instead.
Methods
__construct(SessionService $sessionService, RedirectService $redirectService, ConfigurationInterface $config)
No description
void
void
JsonResponse
apiUnauthorizedResponse()
The 401 body an unauthenticated API request receives in place of the login redirect.
void
redirectToIndex()
No description
Details
__construct(SessionService $sessionService, RedirectService $redirectService, ConfigurationInterface $config)
No description
void
logout(FlashMessage $sessionEntity)
No description
void
auth(FlashMessage $sessionEntity)
No description
JsonResponse
apiUnauthorizedResponse()
The 401 body an unauthenticated API request receives in place of the login redirect.
void
redirectToIndex()
No description