Share via


IMobileServiceClient.LoginAsync Méthode

Définition

Surcharges

LoginAsync(MobileServiceAuthenticationProvider, JObject)

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

LoginAsync(String, JObject)

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

LoginAsync(MobileServiceAuthenticationProvider, JObject)

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

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

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 un objet de jeton.

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

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 à