Skip to main content

IAuthenticationService

An interface in Alta.Platform, Alta.Platform.

Signs the player in to the Alta account service and supplies access tokens. Client side; AuthenticationService in Alta.Platform.Generic implements it.

Properties​

MemberWhat it is
bool ExternalPlatformSigninRequired { get; }Whether the player must sign in through the platform (such as Oculus) first.
IAuthenticationFeatures Features { get; }What this service supports.

Methods​

MemberWhat it is
Task<IResult> AutoLoginAsync()Tries to log in without asking the player.
Task<IResult<string>> GetAccessToken()Gets the current access token, optionally forcing a refresh.
Task<IResult<string>> GetAccessToken(bool forceRefresh)Gets the current access token, optionally forcing a refresh.
Task<IResult> LinkPlatformAccount()Links the platform account to the Alta account.
Task<IResult> LoginWithPlatformCredentials()Logs in with the platform's credentials.
Task<IResult<UserInfo>> RegisterAccount(string username, string password, string email, string referral)Creates a new Alta account with username, password, email and referral.
Task<IResult> UnlinkPlatformAccount()Unlinks the platform account.

Used in​

Members of other types that take, return or hold a IAuthenticationService: