Interface IServerAuthenticationService
The functions for the Server Authentication service.
Namespace: Unity.Services.Authentication.Server
Assembly: solution.dll
Syntax
public interface IServerAuthenticationService : IService
Properties
| Name | Description |
|---|---|
| AccessToken | Returns the current access token, otherwise null. |
| IsAuthorized | Validates that the state is authorized. |
| State | The current state of the service |
Methods
| Name | Description |
|---|---|
| ClearCredentials() | Clears the access token and authorization state. |
| SignInFromServerAsync() | Retrieve a token to authorize server operations from a hosted server. Must be running on a multiplay server or with the server local proxy activated. |
| SignInWithServiceAccountAsync(string, string) | Trusted sign-in using service account credentials |
Events
| Name | Description |
|---|---|
| AuthorizationFailed | Invoked when a sign-in attempt has failed. The reason for failure is passed as the parameter ServerAuthenticationException. |
| Authorized | Invoked when an authorization attempt has completed successfully. |
| Expired | Invoked when an access token expires. |