Share via


LoginProvider Class

 

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

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Security
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Mobile.Service.Security.LoginProvider
    Microsoft.WindowsAzure.Mobile.Service.Security.Providers.AzureActiveDirectoryLoginProvider
    Microsoft.WindowsAzure.Mobile.Service.Security.Providers.FacebookLoginProvider
    Microsoft.WindowsAzure.Mobile.Service.Security.Providers.GoogleLoginProvider
    Microsoft.WindowsAzure.Mobile.Service.Security.Providers.MicrosoftAccountLoginProvider
    Microsoft.WindowsAzure.Mobile.Service.Security.Providers.TwitterLoginProvider

Syntax

public abstract class LoginProvider : ILoginProvider
public ref class LoginProvider abstract : ILoginProvider
[<AbstractClass>]
type LoginProvider = 
    class
        interface ILoginProvider
    end
Public MustInherit Class LoginProvider
    Implements ILoginProvider

Constructors

Name Description
System_CAPS_protmethod LoginProvider(IServiceTokenHandler)

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

Properties

Name Description
System_CAPS_pubproperty Name

System_CAPS_protproperty TokenHandler

Gets the IServiceTokenHandler for this instance.

System_CAPS_protproperty TokenLifetime

Gets or sets the lifetime for generated tokens.

Methods

Name Description
System_CAPS_pubmethod ConfigureMiddleware(IAppBuilder, ServiceSettingsDictionary)

System_CAPS_pubmethod CreateCredentials(ClaimsIdentity)

System_CAPS_pubmethod CreateLoginResult(ClaimsIdentity, String)

Creates a login result to return after a successful login.

System_CAPS_protmethod CreateTokenInfo(ClaimsIdentity, ProviderCredentials, String)

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

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_protmethod GetClientFlowAuthenticationType()

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

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ParseCredentials(JObject)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service.Security Namespace

Return to top