Skip to end of metadata
Go to start of metadata

Represents a native authenticator for the iOS platform.

Definition

public abstract class IOSNativeAuthenticatorBase : WebNavigationAuthenticatorBase,

ISupportReauthorize, ISupportVerification, IAuthenticatorInitializer<OAuth2RequestData>

Summary

The following table summarizes the members exposed in this class.

Protected Constructors

Public Properties

AppId Gets or sets the application identifier.
Audience Gets or sets the Facebook audience.
Precedence Gets the precedence of this authenticator. An IAuthenticationService authenticates a list of authenticators ordered by the precedence defined in this property.
Scope Gets or sets the scope.
SupportsUserInteraction Gets a value indicating whether this IAuthenticator supports user interaction.

Protected Properties

AccountStore Gets the account store.
AccountStoreOptions Gets the account store options.

Public Methods

AuthenticateAsync(IWebAuthenticationContext) Performs authentication asynchronously.
CreateRequest(Uri, IAccount, HttpMethod, IDictionary<string, string>) Creates the request.
GetStoredAccount() Gets the stored account, if previously saved.
InitializeAuthenticator(object) Initializes the authenticator.
ReauthorizeAsync(IAccount) Reauthorizes the account asynchronously.
VerifyAsync(IAccount) Verifies the account asynchronously.

Protected Methods

CreateAccount(ACAccount) Creates the account.
GetServiceIdentifier(string) Gets the service identifier.
GetServiceKind(string) Gets the kind of the service.
OnAuthenticatedFromWeb(string, IDictionary<string, string>) Called when the username is authenticated from web.

Protected Constructors

protected IOSNativeAuthenticatorBase()

Public Properties

public string AppId { get; set; }

Gets or sets the application identifier.

public ACFacebookAudience Audience { get; set; }

Gets or sets the Facebook audience.

public int Precedence { get; }

Gets the precedence of this authenticator. An IAuthenticationService authenticates a list of authenticators ordered by the precedence defined in this property.

public string Scope { get; set; }

Gets or sets the scope.

public bool SupportsUserInteraction { get; }

Gets a value indicating whether this IAuthenticator supports user interaction.

Protected Properties

protected ACAccountStore AccountStore { get; }

Gets the account store.

protected AccountStoreOptions AccountStoreOptions { get; }

Gets the account store options.

Public Methods

public Task<IAuthenticationResult> AuthenticateAsync(IWebAuthenticationContext authenticationContext)

Performs authentication asynchronously.

Parameters

authenticationContext The context of the authentication.

Return Types

The result of the authentication process.

public IWebRequest CreateRequest(Uri url, IAccount account, HttpMethod method, IDictionary<string, string> parameters)

Creates the request.

Parameters

url The URL.
account The account.
method The http method.
parameters The additional parameters.

public IAccount GetStoredAccount()

Gets the stored account, if previously saved.

Return Types

The stored account.

public void InitializeAuthenticator(object authData)

Initializes the authenticator.

Parameters

authData The authentication data.

public Task<IAccount> ReauthorizeAsync(IAccount account)

Reauthorizes the account asynchronously.

Parameters

account The account.

Exceptions

ArgumentNullException account
NotSupportedException Account type ' + account.GetType().FullName + ' is not supported.

public Task VerifyAsync(IAccount account)

Verifies the account asynchronously.

Parameters

account The account.

Protected Methods

protected IAccount CreateAccount(ACAccount nativeAccount)

Creates the account.

Parameters

nativeAccount The native account.

protected NSString GetServiceIdentifier(string serviceId)

Gets the service identifier.

Parameters

serviceId The service identifier.

Exceptions

NotSupportedException Unsupported service ' + serviceId + '

protected SLServiceKind GetServiceKind(string serviceId)

Gets the kind of the service.

Parameters

serviceId The service identifier.

Exceptions

NotSupportedException Unsupported service ' + serviceId + '

protected void OnAuthenticatedFromWeb(string username, IDictionary<string, string> accountProperties)

Called when the username is authenticated from web.

Parameters

username The username.
accountProperties The account properties.
  • No labels