docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License

    • Unity.DigitalTwins.Identity
      • AuthenticationState
      • BrowserAuthenticatedAccessTokenProvider
      • CommandLineAccessTokenProvider
      • DeviceToken
      • HttpPkceRequestHandler
      • IActivatePlatformSupport
      • IAuthenticator
      • IInteractiveAuthenticator
      • IPkceConfigurationProvider
      • IPkcePlatformSupport
      • IPkceRequestHandler
      • IPreAuthenticatedAccessTokenProvider
      • IUserInfoProvider
      • LaunchArgumentsParser
      • LicenseInfo
      • LicenseType
      • OrganizationInfo
      • PersonalAccessTokenProvider
      • PkceAuthenticator
      • PkceConfiguration
      • PkceConfigurationProvider
      • PreAuthenticatedHostAccessTokenProvider
      • UserInfo
      • UserInfoProvider
    • Unity.DigitalTwins.Identity.Runtime
      • AndroidActivatePlatformSupport
      • AndroidPkcePlatformSupport
      • CompositeAuthenticator
      • EditorActivateFromUrl
      • EditorActivatePlatformSupport
      • EditorPkcePlatformSupport
      • IosActivatePlatformSupport
      • IosPkcePlatformSupport
      • LinuxActivatePlatformSupport
      • LinuxPkcePlatformSupport
      • OsxActivatePlatformSupport
      • OsxPkcePlatformSupport
      • PlatformSupportFactory
      • WebglActivatePlatformSupport
      • WebglPkcePlatformSupport
      • WindowsActivatePlatformSupport
      • WindowsPkcePlatformSupport

    Class PreAuthenticatedHostAccessTokenProvider

    An IAccessTokenProvider implementation that expects an access token from a preauthenticated host environment.

    Inheritance
    Object
    PreAuthenticatedHostAccessTokenProvider
    Implements
    IPreAuthenticatedAccessTokenProvider
    Unity.DigitalTwins.Common.IAccessTokenProvider
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.DigitalTwins.Identity
    Assembly: solution.dll
    Syntax
    public class PreAuthenticatedHostAccessTokenProvider : IPreAuthenticatedAccessTokenProvider, IAccessTokenProvider

    Constructors

    PreAuthenticatedHostAccessTokenProvider()

    Returns an IAccessTokenProvider implementation that expects an access token from a preauthenticated host environment.

    Declaration
    public PreAuthenticatedHostAccessTokenProvider()

    Methods

    GetAccessTokenAsync()

    Awaitable call to fetch the user access token.

    Declaration
    public Task<string> GetAccessTokenAsync()
    Returns
    Type Description
    Task<String>

    A Task that results in the string value of the user access token when completed.

    SetAccessToken(String)

    Sets the preauthenticated access token string value.

    Declaration
    public void SetAccessToken(string accessToken)
    Parameters
    Type Name Description
    String accessToken

    The string value of the preauthenticated access token.

    Implements

    IPreAuthenticatedAccessTokenProvider
    Unity.DigitalTwins.Common.IAccessTokenProvider
    Back to top Generated by DocFX
    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