What is the best way to programmatically read the claim types found in the Web.config?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I might be mistaken, but I don’t think the claim types listed under applicationService/claimTypeRequested in the web.config are actually used by WIF, they’re only used by FedUtil.exe when generating your application’s federation metadata document. Therefore I don’t think WIF exposes them anywhere under FederatedAuthentication.ServiceConfiguration like one might expect.
You can always just crack open the web.config and scan for them yourself, like so: