Valid 70-486 Dumps shared by ExamDiscuss.com for Helping Passing 70-486 Exam! ExamDiscuss.com now offer the newest 70-486 exam dumps, the ExamDiscuss.com 70-486 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 70-486 dumps with Test Engine here:
You develop an ASP.NET MVC application. The application is configured for claims-based authentication by using Windows Identity Foundation (WIF). You need to access the claims in the WIF token. Which code segment should you use?
Correct Answer: B
Explanation/Reference: Explanation: To Access the Claims In order to access identity related information, you can run FedUtil. Once you have run FedUtil, your application can access IClaimsPrincipal and IClaimsIdentity using the standard ASP.NET constructs as shown in the following code example: void Page_Load(object sender, EventArgs e) { // Cast the Thread.CurrentPrincipal IClaimsPrincipal icp = Thread.CurrentPrincipal as IClaimsPrincipal; // Access IClaimsIdentity which contains claims IClaimsIdentity claimsIdentity = (IClaimsIdentity)icp.Identity; // Access claims foreach(Claim claim in claimsIdentity.Claims) { . . . } } References: https://msdn.microsoft.com/en-us/library/ee517271.aspx