docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TargetClientIdTokenToUnityServicesTokenExchanger

    An IAccessTokenExchanger<T1, T2> where the T1 input is a TargetClientIdToken and T2 output is a UnityServicesToken

    Inheritance
    object
    TargetClientIdTokenToUnityServicesTokenExchanger
    Implements
    IAccessTokenExchanger<TargetClientIdToken, UnityServicesToken>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Identity
    Assembly: Unity.Cloud.Identity.dll
    Syntax
    public class TargetClientIdTokenToUnityServicesTokenExchanger : IAccessTokenExchanger<TargetClientIdToken, UnityServicesToken>

    Constructors

    TargetClientIdTokenToUnityServicesTokenExchanger(IHttpClient, IServiceHostResolver)

    Provides Unity Services token from TargetClientIdToken

    Declaration
    public TargetClientIdTokenToUnityServicesTokenExchanger(IHttpClient httpClient, IServiceHostResolver serviceHostResolver)
    Parameters
    Type Name Description
    IHttpClient httpClient

    An Unity.Cloud.Common.IHttpClient instance.

    IServiceHostResolver serviceHostResolver

    An Unity.Cloud.Common.IServiceHostResolver instance.

    Methods

    ExchangeAsync(TargetClientIdToken)

    Returns a T2 exchanged token

    Declaration
    public Task<UnityServicesToken> ExchangeAsync(TargetClientIdToken exchangeToken)
    Parameters
    Type Name Description
    TargetClientIdToken exchangeToken

    The token input value of type T1.

    Returns
    Type Description
    Task<UnityServicesToken>

    A task that once completed returns a T2 exchanged token from a T1 input value.

    Implements

    IAccessTokenExchanger<T1, T2>
    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)