Gets the current authentication state.
Creates an Authorization
object that provides access to the roles of the current user.
Optional
authentication: Authentication | UserCreates an User
object that provides access to properties of the current user.
(normally triggered via: getAuthentication().getUser();
)
Optional
authentication: AuthenticationPerforms a login. options is only {refresh:true}, which marks that no events are triggered!
Optional
credentials: LoginCredentialsOptional
options: LoginOptionsTriggers logout of an Authentication instance
(normally triggered via: getAuthentication().logout();
Optional
authentication: AuthenticationRegisters event listener.
Service used to login/logout a user. Available as service with interface
ct.framework.api.UserAdmin