作業中の MVC プロジェクトで WIF をセットアップしようとしていますが、役に立ちません。私が抱えている問題は、それFederatedAuthentication.SessionAuthenticationModule
が常にnullであることです。の下の web.config に次の行を追加しましたconfigSections
。
<section name="system.identityModel"
type="System.IdentityModel.Configuration.SystemIdentityModelSection, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<section name="system.identityModel.services"
type="System.IdentityModel.Services.Configuration.SystemIdentityModelServicesSection, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
モジュールの初期化も試みました。
<modules>
<add name="SessionAuthenticationModule"
type="System.IdentityModel.Services.SessionAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
preCondition="managedHandler" />
</modules>
まだ何もありません。ナゲット経由でWIFをインストールしました。オンラインのほとんどのドキュメント (上記で投稿したものなど) の WIF の名前空間は でSystem.IdentityModel
あるのに対し、nuget を介して持っているものの名前空間はMicrosoft.IdentityModel
. これが問題を引き起こしている可能性がありますか?
いくつかの仕様:
標準 MVC 4 プロジェクト
Microsoft.IdentityModel.dll
v3.5.0.0 の使用