LoginProvider Class

Definition

This class provides a base implementation of the ILoginProvider interface defining a common base for authenticating clients logging into a mobile service.

public abstract class LoginProvider : Microsoft.WindowsAzure.Mobile.Service.Security.ILoginProvider
type LoginProvider = class
    interface ILoginProvider
Public MustInherit Class LoginProvider
Implements ILoginProvider
Inheritance
LoginProvider
Derived
Implements

Constructors

LoginProvider(IServiceTokenHandler)

Initializes a new instance of the LoginProvider with a given tokenHandler for processing tokens.

Properties

Name

Gets or sets the name uniquely identifying this ILoginProvider. The name is used to refer to the this ILoginProvider from the LoginController as well as from the OWIN application pipeline.

TokenHandler

Gets the IServiceTokenHandler for this instance.

TokenLifetime

Gets or sets the lifetime for generated tokens.

Methods

AuthenticateClient(HttpRequestMessage)

Handles the specified client flow login request

ConfigureMiddleware(IAppBuilder, ServiceSettingsDictionary)

Configures this module for participation in the OWIN application pipeline. The module should be configured as passive so as only to participate in the mobile service authentication process when requested by the LoginController.

CreateCredentials(ClaimsIdentity)

Return the set of provider specific credentials for inclusion in a login token

CreateLoginResult(ClaimsIdentity, String)

Creates a login result to return after a successful login.

CreateTokenInfo(ClaimsIdentity, ProviderCredentials, String)

Creates the final login token using the specified inputs. Derived classes can override to customize the login token produced.

GetClientFlowAuthenticationType()

Gets the name under which the OWIN middleware handling the client flow should be registered.

ParseCredentials(JObject)

Deserialize the specified provider credentials

Applies to