IMobileServiceClient.LoginAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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>"}
適用対象
Azure SDK for .NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示