カスタム基本認証でユーザーを認証する wcf データ サービスがあります。MSDN ブログのOData and Authentication – Part 6 – Custom Basic Authenticationのチュートリアルを使用しました。したがって、データベースに対してユーザーを認証した後、サービスは設定します
var principal = new GenericPrincipal( new GenericIdentity("user") );
HttpContext.Current.User = principal;
私のサービス内では、次の方法でプリンシパルの認証ステータスにアクセスできます
HttpContext.Current.Request.IsAuthenticated
WPF クライアントで IsAuthenticated ステータスを取得する可能性はありますか?