Interface AuthenticationService

    • Method Detail

      • globalLogoutRequest

        Response globalLogoutRequest​(LogoutRequest request)
        This method executes a global logout so that the user is logged out all the application they have logged into.
        For example:

        authenticationService.globalLogoutWithContentProvider(userId, contentProviderId);

        Parameters:
        request - The request to logout.
      • login

        AuthenticationResponse login​(AuthenticationRequest request)
        This method logs in a user. It updates his Login record to reflect this fact. Unsuccessful logins attempts are counted. If the user unsuccessfully logins in N number of times in a row, his account is locked. 'N' is defined in the Password Policy.
        Parameters:
        request - - authentication request specific to the user logging in.
        Returns:
        - an AuthenticationResponse object containing the user's token, principal, and internal user ID. If the login attempt was successful,

        AuthenticationResponse.getStatus()

        returns ResponseCode.SUCCESS. Otherwise, it is set to ResponseCode.FAILURE
      • renewToken

        Response renewToken​(String principal,
                            String token,
                            String managedSystemId)
        Attempts to renew the SSO Token for this user.
        Parameters:
        principal - - the user's login
        token - - the current token
        Returns:
        a Response object. If successful,

        Response.getStatus()

        returns ResponseCode.SUCCESS. Otherwise, it returns ResponseCode.FAILURE. If renewal is successful Response.getResponseValue() will contains an SSOToken Object.
      • getAllLoginModuleSpringBeans

        List<String> getAllLoginModuleSpringBeans()
      • checkVerificationCode

        boolean checkVerificationCode​(VerificationCodeRequest request)
        Check sms code for approve phone number
        Parameters:
        request -
        Returns:
      • sendVerificationCode

        Response sendVerificationCode​(VerificationCodeRequest request)
        Send sms code for check phone number
        Parameters:
        request -
        Returns: