DotNetOpenAuth4.0.0を使用してOAuth2.0クライアントで作業しています
OAuth2.0クライアントサンプルプロジェクトの「SampleWcf2.aspx」ページについて質問があります。
このページでは、プロパティIAuthorizationStateAuthorizationに次のように記載されています。
/// <remarks>
/// Because this is a sample, we simply store the authorization information in memory with the user session.
/// A real web app should store at least the access and refresh tokens in this object in a database associated with the user.
/// </remarks>
CallServiceメソッドを使用する前にエンドユーザーのユーザー名を取得するにはどうすればよいですか?トークンをデータベースに保存したい場合は、エンドユーザーのユーザー名が主キーとして必要だと思います。私のプロジェクトでは、Cassandraを使用してトークンを保存し、RowKeyとしてユーザー名を使用する必要があります。
ユーザー名を取得する方法はありますか?
返信を待っています。
BR