Interface IUrlRedirectionAuthenticator
An interface for manual login and logout operations using redirection flows.
Inherited Members
Namespace: Unity.Cloud.Identity
Assembly: Unity.Cloud.Identity.dll
Syntax
public interface IUrlRedirectionAuthenticator : IAuthenticator, IServiceAuthorizer, IAuthenticationStateProvider, IUserInfoProvider, IOrganizationRepository
Methods
CancelLogin()
Cancels the awaiting login operation.
Declaration
void CancelLogin()
Exceptions
Type | Condition |
---|---|
InvalidOperationException |
LoginAsync()
Performs a login operation.
Declaration
Task LoginAsync()
Returns
Type | Description |
---|---|
Task | A task. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | |
AuthenticationFailedException |
LogoutAsync(bool)
Performs a logout operation.
Declaration
Task LogoutAsync(bool clearBrowserCache = false)
Parameters
Type | Name | Description |
---|---|---|
bool | clearBrowserCache | An optional boolean value that, if set to true, triggers a navigation to the OS default browser to clear any cached session. |
Returns
Type | Description |
---|---|
Task | A task. |
Remarks
A logout operation clears the user session in the application only. Unless the user manually clears the session in the browser that is used for authentication, a user can get automatically logged in again from cached values, without entering any credentials. Use the clearBrowserCache boolean to also clear the session in the browser to prevent automatic login from a cached session.
Exceptions
Type | Condition |
---|---|
InvalidOperationException |