docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IUrlRedirectionAuthenticator

    An interface for manual login and logout operations using redirection flows.

    Inherited Members
    IAuthenticator.HasValidPreconditionsAsync()
    IAuthenticator.InitializeAsync()
    IServiceAuthorizer.AddAuthorization(HttpHeaders)
    IAuthenticationStateProvider.AuthenticationState
    IAuthenticationStateProvider.AuthenticationStateChanged
    IUserInfoProvider.GetUserInfoAsync()
    IOrganizationRepository.ListOrganizationsAsync(Range, CancellationToken)
    IOrganizationRepository.GetOrganizationAsync(OrganizationId)
    Namespace: Unity.Cloud.Identity
    Assembly: Unity.Cloud.Identity.dll
    Syntax
    public interface IUrlRedirectionAuthenticator : IAuthenticator, IServiceAuthorizer, IAuthenticationStateProvider, IUserInfoProvider, IOrganizationRepository

    Methods

    CancelLogin()

    Cancels the awaiting login operation.

    Declaration
    void CancelLogin()
    Exceptions
    Type Condition
    InvalidOperationException

    LoginAsync()

    Performs a login operation.

    Declaration
    Task LoginAsync()
    Returns
    Type Description
    Task

    A task.

    Exceptions
    Type Condition
    InvalidOperationException
    AuthenticationFailedException

    LogoutAsync(bool)

    Performs a logout operation.

    Declaration
    Task LogoutAsync(bool clearBrowserCache = false)
    Parameters
    Type Name Description
    bool clearBrowserCache

    An optional boolean value that, if set to true, triggers a navigation to the OS default browser to clear any cached session.

    Returns
    Type Description
    Task

    A task.

    Remarks

    A logout operation clears the user session in the application only. Unless the user manually clears the session in the browser that is used for authentication, a user can get automatically logged in again from cached values, without entering any credentials. Use the clearBrowserCache boolean to also clear the session in the browser to prevent automatic login from a cached session.

    Exceptions
    Type Condition
    InvalidOperationException
    In This Article
    Back to top
    Copyright © 2024 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)