Class UnityEditorAuthenticator
An IAuthenticator implementation to access the user authenticated session in the Unity Editor.
Inheritance
UnityEditorAuthenticator
Assembly: Unity.Cloud.Identity.Editor.dll
Syntax
[Obsolete("Deprecated in favor of the UnityEditorServiceAuthorizer.")]
public class UnityEditorAuthenticator : IAuthenticator, IServiceAuthorizer, IAuthenticationStateProvider, IUserInfoProvider, IOrganizationRepository, IDisposable
Constructors
UnityEditorAuthenticator()
Returns an IAuthenticator implementation that expects an access token from a Unity Editor environment.
Declaration
public UnityEditorAuthenticator()
UnityEditorAuthenticator(IAccessTokenExchanger<TargetClientIdToken, UnityServicesToken>)
Returns an IAuthenticator implementation that expects an access token from a Unity Editor environment.
Declaration
public UnityEditorAuthenticator(IAccessTokenExchanger<TargetClientIdToken, UnityServicesToken> accessTokenExchanger)
Parameters
UnityEditorAuthenticator(IAccessTokenExchanger<TargetClientIdToken, UnityServicesToken>, IUnityEditorAccessTokenProvider)
Returns an IAuthenticator implementation that expects an access token from a Unity Editor environment.
Declaration
public UnityEditorAuthenticator(IAccessTokenExchanger<TargetClientIdToken, UnityServicesToken> accessTokenExchanger, IUnityEditorAccessTokenProvider unityEditorAccessTokenProvider)
Parameters
Properties
AuthenticationState
Declaration
public AuthenticationState AuthenticationState { get; }
Property Value
Methods
Declaration
public Task AddAuthorization(HttpHeaders headers)
Parameters
Returns
Dispose()
Disposes of any IDisposable references.
Declaration
Dispose(bool)
Disposes of any IDisposable references.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
Dispose pattern boolean value received from public Dispose method.
|
GetOrganizationAsync(OrganizationId)
Declaration
public Task<IOrganization> GetOrganizationAsync(OrganizationId organizationId)
Parameters
Returns
GetUserInfoAsync()
Declaration
public Task<IUserInfo> GetUserInfoAsync()
Returns
HasValidPreconditionsAsync()
Indicates if the UnityEditorAuthenticator running instance has access to an access token from the Unity Editor environment.
Declaration
public Task<bool> HasValidPreconditionsAsync()
Returns
InitializeAsync()
Declaration
public Task InitializeAsync()
Returns
ListOrganizationsAsync(Range, CancellationToken)
Declaration
public IAsyncEnumerable<IOrganization> ListOrganizationsAsync(Range range, CancellationToken cancellationToken = default)
Parameters
Returns
Events
AuthenticationStateChanged
Declaration
public event Action<AuthenticationState> AuthenticationStateChanged
Event Type
Implements