Share via


IMobileServiceClient.LoginAsync メソッド

定義

オーバーロード

LoginAsync(MobileServiceAuthenticationProvider, JObject)

プロバイダーとトークン オブジェクトを使用して、ユーザーを Windows Azure Mobile Service にログに記録します。

LoginAsync(String, JObject)

プロバイダーとトークン オブジェクトを使用して、ユーザーを Microsoft Azure Mobile Service にログに記録します。

LoginAsync(MobileServiceAuthenticationProvider, JObject)

プロバイダーとトークン オブジェクトを使用して、ユーザーを Windows Azure Mobile Service にログに記録します。

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)

パラメーター

provider
MobileServiceAuthenticationProvider

使用する認証プロバイダーです。

token
Newtonsoft.Json.Linq.JObject

ログインに使用する既存の OAuth トークンを持つプロバイダー固有のオブジェクト。

戻り値

ユーザーが認証を終了するとタスクが完了します。

注釈

トークン オブジェクトは、特定のプロバイダーに応じて書式設定されている必要があります。 次に、プロバイダーに基づく書式の例をいくつか示します。

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

適用対象

LoginAsync(String, JObject)

プロバイダーとトークン オブジェクトを使用して、ユーザーを Microsoft Azure Mobile Service にログに記録します。

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)

パラメーター

provider
String

使用する認証プロバイダーです。

token
Newtonsoft.Json.Linq.JObject

ログインに使用する既存の OAuth トークンを持つプロバイダー固有のオブジェクト。

戻り値

ユーザーが認証を終了するとタスクが完了します。

注釈

トークン オブジェクトは、特定のプロバイダーに応じて書式設定されている必要があります。 次に、プロバイダーに基づく書式の例をいくつか示します。

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

適用対象