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 BrowserAuthenticatedAccessTokenProvider

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

    Inheritance
    Object
    BrowserAuthenticatedAccessTokenProvider
    Implements
    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 BrowserAuthenticatedAccessTokenProvider : IAccessTokenProvider

    Constructors

    BrowserAuthenticatedAccessTokenProvider(IPkcePlatformSupport)

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

    Declaration
    public BrowserAuthenticatedAccessTokenProvider(IPkcePlatformSupport pkcePlatformSupport)
    Parameters
    Type Name Description
    IPkcePlatformSupport pkcePlatformSupport

    Fields

    s_CachedAccessTokenName

    Declaration
    public static readonly string s_CachedAccessTokenName
    Field Value
    Type Description
    String

    Methods

    GetAccessTokenAsync()

    Awaitable call to fetch the user access token.

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

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

    Implements

    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