Share via


IServiceTokenHandler Interface

 

Provides an abstraction for handling security tokens. This abstraction can be used for validating security tokens and creating ServiceUser instances.

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

Syntax

public interface IServiceTokenHandler
public interface class IServiceTokenHandler
type IServiceTokenHandler = interface end
Public Interface IServiceTokenHandler

Methods

Name Description
System_CAPS_pubmethod CreateLoginResult(TokenInfo, ProviderCredentials, String)

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

System_CAPS_pubmethod CreateServiceUser(ClaimsIdentity)

Creates a ServiceUser based on a given claimsIdentity.

System_CAPS_pubmethod CreateTokenInfo(ClaimsIdentity, ProviderCredentials, TimeSpan, String)

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

System_CAPS_pubmethod 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.

System_CAPS_pubmethod 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.

System_CAPS_pubmethod TryValidateLoginToken(String, String, ClaimsPrincipal)

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

System_CAPS_pubmethod TryValidateSchedulerToken(String, String, ClaimsPrincipal)

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

See Also

Microsoft.WindowsAzure.Mobile.Service.Security Namespace

Return to top