共用方式為


Authenticating Mobile Services requests

 

Microsoft Azure Mobile Services enables clients to request a service-specific token for an authenticated user by using REST APIs. The returned token is used to make subsequent authenticated requests to the mobile service.

In this section

The REST API includes the following authentication operations.

Operation

Description

Service-directed login operation

Requests that Mobile Services initiate authentication using a specific identity provider. The returned token is used to make subsequent authenticated requests to the mobile service. When using service-directed login, Mobile Services initiates an OAuth flow that enables your client to login to Mobile Services by using the requested identity provider.

Client-directed login operation

Requests an authentication token from Mobile Services by using an identity token already obtained from an identity provider. The token presented to Mobile Services for authentication must be obtained by the client independent of Mobile Services, usually by using the providers SDK, such as the Facebook SDK for iOS. Use client-initiated authentication when your app obtains an identity token to enable single sign-on or get additional user information using the provider SDK.

See Also

Azure Mobile Services REST API Reference