Dela via


ServiceTokenHandler Class

Definition

Provides a default implementation of the IServiceTokenHandler interface.

public class ServiceTokenHandler : Microsoft.WindowsAzure.Mobile.Service.Security.IServiceTokenHandler
type ServiceTokenHandler = class
    interface IServiceTokenHandler
Public Class ServiceTokenHandler
Implements IServiceTokenHandler
Inheritance
ServiceTokenHandler
Implements

Constructors

ServiceTokenHandler(HttpConfiguration)

Initializes a new instance of the ServiceTokenHandler class.

Methods

CreateLoginResult(TokenInfo, ProviderCredentials, String)

Creates a LoginResult containing information generated as a result of a successful login process.

CreateServiceUser(ClaimsIdentity)

Creates a ServiceUser based on a given claimsIdentity.

CreateTokenInfo(ClaimsIdentity, ProviderCredentials, TimeSpan, String)

Creates a TokenInfo containing a security token to be used as part of the Mobile Service authentication process.

CreateUserId(String, String)

Creates a user id value contained within a ProviderCredentials. The user id is of the form ProviderName:ProviderId where the ProviderName is the unique identifier for the ILoginProvider and the ProviderId is the provider specific id for a given user.

InitializeLoginProviders()

Gets the set of ILoginProvider instances available.

TryGetLoginProvider(String, ILoginProvider)

Gets the ILoginProvider registered with a given name or returns null if one wasn't found.

TryParseUserId(String, String, String)

Parses a user id into its two components: a ProviderName which uniquely identifies the ILoginProvider and the ProviderId which identifies the provider specific id for a given user.

TryValidateLoginToken(String, String, ClaimsPrincipal)

Validates a string representation of a mobile service authentication token used to authenticate a user request.

TryValidateSchedulerToken(String, String, ClaimsPrincipal)

Validates a string representation of a mobile service authentication token used to authenticate a request targeting a IScheduledJob.

Applies to