AuthenticationService.isLoggedIn()
の結果が真の場合、ログインしているユーザーの名前を取得するにはどうすればよいですか?WCF AuthenticationServiceからユーザー名を取得するにはどうすればよいですか?
ありがとうございました。
AuthenticationService.isLoggedIn()
の結果が真の場合、ログインしているユーザーの名前を取得するにはどうすればよいですか?WCF AuthenticationServiceからユーザー名を取得するにはどうすればよいですか?
ありがとうございました。
あなたはThead.CurrentPrincipalを見てみましたか?
通常、私はServiceSecurityContext.CurrentからWCFセキュリティ情報を見つけるでしょう。
ServiceSecurityContext.Current.WindowsIdentity.Name
WebContext.Current.Authentication
ServiceSecurityContext.Current.PrimaryIdentityを試してみてください?