Class EditorPkcePlatformSupport
This class handles Unity Editor platform-specific features in the authentication flow.
Inherited Members
Namespace: Unity.DigitalTwins.Identity.Runtime
Assembly: solution.dll
Syntax
public class EditorPkcePlatformSupport : EditorActivatePlatformSupport, IPkcePlatformSupport, IActivatePlatformSupport
Constructors
EditorPkcePlatformSupport(IUrlRedirectionInterceptor)
Creates a EditorPkcePlatformSupport instance using an IUrlRedirectionInterceptor.
Declaration
public EditorPkcePlatformSupport(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 Unity Editor.
Declaration
public string GetAppStateOverride()
Returns
Type | Description |
---|---|
String | A null value. |
GetRedirectionResult()
No Unity.DigitalTwins.Common.UrlRedirectResult expected at app initializing time on Unity Editor.
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. |