Interface LoginServiceLocal

    • Method Detail

      • doLogin

        Pair<Session,​IdentityProviderNotLinkReason> doLogin​(TimeInterval timeout,
                                                                  String deviceConfirmationId,
                                                                  Long deviceId,
                                                                  String hmac,
                                                                  String identityProviderRequestId,
                                                                  String fcmDeviceToken)
        Logs in the current user.
        If a device confirmation id, device id and HMAC are given then the following happen:
        • For authenticated users: If valid a trusted session will be created which means higher payment limits could be applied, the confirmation password could be skipped (there is a setting in the channel configuration), etc. Otherwise, the session (silently) won't be trusted and the confirmation password will be required according to the channel configuration.
        • For guests: means a login with a trusted device is performing. For this case the session will be also trusted if the parameters are valid. Otherwise a LoginException will be thrown.
        Returns both the session and a reason if the linking with the identity provider was skipped (e.g for being a global user in a network identity provider). A null reason means the linking was made.
      • getFirstAndLastLogin

        DateRange getFirstAndLastLogin​(BasicUser user)
        Returns the first and last login of the given user, or null if never logged in before
      • getLoginData

        LoginData getLoginData​(Channel channel,
                               Long deviceId,
                               PinLocatorVO pinLocator)
        Returns the data for user login according to the given channel.
        Optionally, a trusted device id and pin locator can be given to know if they already exist and are active.
      • removeAllLogs

        void removeAllLogs​(BasicUser basicUser)
        Removes all login history logs for the given user