я написал пользовательский диспетчер авторизации претензий, но всякий раз, когда я пытаюсь запустить приложение я получаю следующую ошибкуClaimsAuthorizationManager не удалось загрузить тип вопроса WIF 3,5
Значение «типа» собственность не может быть разобран. Ошибка: Не удалось загрузить тип «MyCustomClaimsAuthorizationManager».
Я использую WIF 3.5 в SharePoint 2010. Итак, .NET 3.5.
Мой раздел конфигурации выглядит
<microsoft.identityModel>
<service saveBootstrapTokens="true">
<claimsAuthorizationManager type="MyCustomClaimsAuthorizationManager" />
<audienceUris />
<issuerNameRegistry type="Microsoft.SharePoint.IdentityModel.SPPassiveIssuerNameRegistry, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<securityTokenHandlers>
<clear />
<add type="Microsoft.IdentityModel.Tokens.X509SecurityTokenHandler, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add type="Microsoft.SharePoint.IdentityModel.SPSaml11SecurityTokenHandler, Microsoft.SharePoint.IdentityModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
<samlSecurityTokenRequirement>
<nameClaimType value="http://schemas.microsoft.com/sharepoint/2009/08/claims/userid" />
</samlSecurityTokenRequirement>
</add>
<add type="Microsoft.SharePoint.IdentityModel.SPTokenCache, Microsoft.SharePoint.IdentityModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</securityTokenHandlers>
<federatedAuthentication>
<wsFederation passiveRedirectEnabled="false"
issuer="https://none"
realm="https://none" />
<cookieHandler mode="Custom"
path="/">
<customCookieHandler type="Microsoft.SharePoint.IdentityModel.SPChunkedCookieHandler, Microsoft.SharePoint.IdentityModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</cookieHandler>
</federatedAuthentication>
</service>
</microsoft.identityModel>
Мой менеджер авторизации выглядит следующим образом:
public class MyCustomClaimsAuthorizationManager : Microsoft.IdentityModel.Claims.ClaimsAuthorizationManager
{
#region Public Methods
/// <summary>
/// Checks if the principal specified in the authorization context is authorized to perform
/// action specified in the authorization context on the specified resoure
/// </summary>
/// <param name="pec">Authorization context</param>
/// <returns>true if authorized, false otherwise</returns>
public override bool CheckAccess(AuthorizationContext context)
{
return true;
}
#endregion Public Methods
}
Любые идеи относительно того, почему я получаю эту ошибку и как решить ее?
Заранее спасибо Пит