Share via


MobileServiceClient.LoginAsync Méthode

Définition

Surcharges

LoginAsync(MobileServiceAuthenticationProvider, JObject)

Journalise un utilisateur dans un service Windows Azure Mobile Service avec le fournisseur et l’objet de jeton facultatif.

LoginAsync(String, JObject)

Journalise un utilisateur dans un Service mobile Microsoft Azure avec le fournisseur et l’objet de jeton facultatif.

LoginAsync(MobileServiceAuthenticationProvider, JObject)

Journalise un utilisateur dans un service Windows Azure Mobile Service avec le fournisseur et l’objet de jeton facultatif.

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceUser> LoginAsync (Microsoft.WindowsAzure.MobileServices.MobileServiceAuthenticationProvider provider, Newtonsoft.Json.Linq.JObject token);
abstract member LoginAsync : Microsoft.WindowsAzure.MobileServices.MobileServiceAuthenticationProvider * Newtonsoft.Json.Linq.JObject -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceUser>
override this.LoginAsync : Microsoft.WindowsAzure.MobileServices.MobileServiceAuthenticationProvider * Newtonsoft.Json.Linq.JObject -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceUser>
Public Function LoginAsync (provider As MobileServiceAuthenticationProvider, token As JObject) As Task(Of MobileServiceUser)

Paramètres

provider
MobileServiceAuthenticationProvider

Fournisseur d'authentification à utiliser.

token
Newtonsoft.Json.Linq.JObject

Objet spécifique au fournisseur comprenant un jeton OAuth pour la connexion.

Retours

Tâche qui se termine lorsque l'utilisateur a complété l'authentification.

Implémente

Remarques

L'objet jeton doit être formaté selon le fournisseur spécifique. Voici quelques exemples de formats basés sur les fournisseurs :

  • MicrosoftAccount{"authenticationToken":"<the_authentication_token>"}
  • Facebook{"access_token":"<the_access_token>"}
  • Google{"access_token":"<the_access_token>"}

S’applique à

LoginAsync(String, JObject)

Journalise un utilisateur dans un Service mobile Microsoft Azure avec le fournisseur et l’objet de jeton facultatif.

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceUser> LoginAsync (string provider, Newtonsoft.Json.Linq.JObject token);
abstract member LoginAsync : string * Newtonsoft.Json.Linq.JObject -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceUser>
override this.LoginAsync : string * Newtonsoft.Json.Linq.JObject -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceUser>
Public Function LoginAsync (provider As String, token As JObject) As Task(Of MobileServiceUser)

Paramètres

provider
String

Fournisseur d'authentification à utiliser.

token
Newtonsoft.Json.Linq.JObject

Objet spécifique au fournisseur comprenant un jeton OAuth pour la connexion.

Retours

Tâche qui se termine lorsque l'utilisateur a complété l'authentification.

Implémente

Remarques

L'objet jeton doit être formaté selon le fournisseur spécifique. Voici quelques exemples de formats basés sur les fournisseurs :

  • MicrosoftAccount{"authenticationToken":"<the_authentication_token>"}
  • Facebook{"access_token":"<the_access_token>"}
  • Google{"access_token":"<the_access_token>"}

S’applique à