none
ClaimsAuthorizationManager called on each service operation contract RRS feed

  • Question

  • Hello,

    I'm using custom ClaimsAuthorizationManager to implement custom authorization logic. I'm using ClaimsPrincipalPermission as well to call ClaimsAuthorizationManager. Everything works fine however ClaimsAuthorizationManager is called not only when I call ClaimsPrincipalPermission.CheckAccess(...), but also when my service operation contract is called. In this case authorizationContext.Resource is equal to name of my service (e.g. http://tempuri.org/IMyService/MyService) and authorizationContext.Action is equal to name of operation contract (e.g. http://tempuri.org/IMyService/MethodName). Is it possible to tell WCF to call ClaimsAuthorizationManager.CheckAccess only when I call ClaimsPrincipalPermission.CheckAccess(...)?

    Thank you in advance,

    Artur

    Thursday, February 14, 2013 2:27 PM

All replies

  • Hi, do you try override the CheckAccess method? Find more information

    http://msdn.microsoft.com/en-us/library/system.security.claims.claimsauthorizationmanager.checkaccess.aspx

    Tuesday, February 19, 2013 6:04 AM