docs.unity3d.com
    Show / Hide Table of Contents

    Class AuthenticationExtensions

    Authentication extension methods

    Inheritance
    Object
    AuthenticationExtensions
    Namespace: Unity.Services.Authentication
    Syntax
    public static class AuthenticationExtensions

    Methods

    SetProfile(InitializationOptions, String)

    An extension to set the profile to use.

    Declaration
    public static InitializationOptions SetProfile(this InitializationOptions options, string profile)
    Parameters
    Type Name Description
    InitializationOptions options

    The InitializationOptions object to modify

    String profile

    The profile to use

    Returns
    Type Description
    InitializationOptions

    Return options. Fluent interface pattern to make it easier to chain set options operations.

    Exceptions
    Type Condition
    AuthenticationException

    the method will fail with an AuthenticationException if an invalid profile name is passed

    • Throws with ErrorCode ClientInvalidProfile if the profile name is invalid.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023