docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IServerAuthenticationService

    The functions for the Server Authentication service.

    Namespace: Unity.Services.Authentication.Server
    Assembly: solution.dll
    Syntax
    public interface IServerAuthenticationService

    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.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)