oAuth 以外の認証で Web Authentication Broker を使用できますか?
認証 Cookie を取得して永続化するために、Web 認証ブローカーを介して使用するログイン ページを含む Asp.Net MVC2 Web サイトを作成しました。
コードは次のとおりです。
WebAuthenticationResult WebAuthenticationResult = await WebAuthenticationBroker.AuthenticateAsync(
WebAuthenticationOptions.None,
new Uri("https://localhost:44301/Account/LogOn"),
new Uri("https://localhost:44301/"));
WAB をロードすると、「サービスに接続できません」というメッセージが返され、イベント ビューアを見ると、ナビゲーション エラー イベントが表示されます。
コードに何か問題がありますか、それとも Cookie ベースのログイン ページに接続する方法がありませんか?