Interface AuthenticationPlugin

Plugin used in the UserAdminService to login/logout a user. The UserAdminService is only available if at least on AuthenticationPlugin is available in the system. An AuthenticationPlugin must be registered as service with interface system.user.api.AuthenticationPlugin.

interface AuthenticationPlugin {
    getAuthorization(user, userAdmin): Authorization;
    getUser(authentication, userAdmin): undefined | User;
    login(credentials, userAdmin): Authentication | Promise<Authentication>;
    logout(authentication, userAdmin): boolean | Promise<boolean>;
}

Methods

  • Get user associated with an authentication.

    Parameters

    Returns undefined | User

    user instance

  • Logout a user.

    Parameters

    Returns boolean | Promise<boolean>

    success state

Generated using TypeDoc