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.
- Listed in Other Alta assemblies
- Derived types
AuthenticationService,UserService,IUserService
Properties
| Member | What 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
| Member | What 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: