none
Setting UseIdentityConfiguration to true clears IAuthorizationPolicy's EvaluationContext RRS feed

  • Question

  • this is more or less a rephrase of this unanswered topic:

    http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/704b98a7-5fa1-42a9-9778-2c529ac11aec

    hosting a wcf service in a windows service, i want to configure it through code. i transform a windows identity to a ClaimsIdentity using IAuthorizationPolicy. i also use a ClaimsAuthorizationManager so i have to enable WIF. this is done by

    ServiceConfiguration.UseIdentityConfiguration = true;

    however, once this is set to true, the IAuthorizationPolicy.Evaluate method always gets an empty EvaluationContext. using a config file all of this works without a problem, but i want to have it all in code. is there any workaround for this?

    in other words: why does setting UseIdentityConfiguration to true clear the EvaluationContext?

    Friday, June 14, 2013 10:27 AM

Answers