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 LinuxPkcePlatformSupport

    This class handles Linux platform-specific features in the authentication flow.

    Inheritance
    Object
    LinuxActivatePlatformSupport
    LinuxPkcePlatformSupport
    Implements
    IPkcePlatformSupport
    IActivatePlatformSupport
    Inherited Members
    LinuxActivatePlatformSupport.ActivationUrl
    LinuxActivatePlatformSupport.ActivationKeyValue
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.DigitalTwins.Identity.Runtime
    Assembly: solution.dll
    Syntax
    public class LinuxPkcePlatformSupport : LinuxActivatePlatformSupport, IPkcePlatformSupport, IActivatePlatformSupport

    Constructors

    LinuxPkcePlatformSupport(IUrlRedirectionInterceptor)

    Creates a LinuxPkcePlatformSupport instance using an IUrlRedirectionInterceptor.

    Declaration
    public LinuxPkcePlatformSupport(IUrlRedirectionInterceptor urlRedirectionInterceptor)
    Parameters
    Type Name Description
    Unity.DigitalTwins.Common.IUrlRedirectionInterceptor urlRedirectionInterceptor

    The IUrlRedirectionInterceptor that will intercept the authentication response sent after completing a login operation in browser.

    Properties

    CodeVerifierCacheStore

    The code verifier cache store.

    Declaration
    public IKeyValueStore CodeVerifierCacheStore { get; }
    Property Value
    Type Description
    Unity.DigitalTwins.Common.IKeyValueStore

    SecretCacheStore

    The secret cache store.

    Declaration
    public IKeyValueStore SecretCacheStore { get; }
    Property Value
    Type Description
    Unity.DigitalTwins.Common.IKeyValueStore

    Methods

    GetAppStateOverride()

    No override provided on Linux.

    Declaration
    public string GetAppStateOverride()
    Returns
    Type Description
    String

    A null value.

    GetRedirectionResult()

    No Unity.DigitalTwins.Common.UrlRedirectResult expected at app initializing time on Linux.

    Declaration
    public UrlRedirectResult? GetRedirectionResult()
    Returns
    Type Description
    Nullable<Unity.DigitalTwins.Common.UrlRedirectResult>

    A null value.

    GetRedirectUri()

    Get the redirection Uri expected from the browser when calling OpenUrlAndWaitForRedirectAsync(String, List<String>).

    Declaration
    public string GetRedirectUri()
    Returns
    Type Description
    String

    The redirection Uri expected from the browser when calling OpenUrlAndWaitForRedirectAsync(String, List<String>).

    OpenUrlAndWaitForRedirectAsync(String, List<String>)

    Creates an awaitable Task that opens an url in a browser and completes when response is intercepted, validated and returns a Unity.DigitalTwins.Common.UrlRedirectResult.

    Declaration
    public async Task<UrlRedirectResult> OpenUrlAndWaitForRedirectAsync(string url, List<string> awaitedQueryArguments = null)
    Parameters
    Type Name Description
    String url

    The url to open. It must trigger a redirection to the Uri referenced by GetRedirectUri().

    List<String> awaitedQueryArguments

    The list of query arguments to validate when receiving the awaited callback url.

    Returns
    Type Description
    Task<Unity.DigitalTwins.Common.UrlRedirectResult>

    A Task that results in a Unity.DigitalTwins.Common.UrlRedirectResult when completed.

    ProcessActivationUrl(List<String>)

    Process activation url to complete login or consume an authenticated app resource.

    Declaration
    public void ProcessActivationUrl(List<string> awaitedQueryArguments = null)
    Parameters
    Type Name Description
    List<String> awaitedQueryArguments

    The list of query arguments to validate when processing the activation url.

    Implements

    IPkcePlatformSupport
    IActivatePlatformSupport
    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