DRAG DROP
You are developing an ASP.NET MVC application that authenticates a user by using claimsbased authentication. The application must:
• Use Windows Identity Foundation 4.5.
• Support the Windows Azure Access Control Service.
You need to implement authentication. How should you build the class constructor? (To
answer, drag the appropriate code segment to the correct location or locations in the answer
area. Each code segment may be used once, more than once, or not at all. You may need to
drag the split bar between panes or scroll to view content.)
Explanation:
Box 1:IClaimsIdent
Box 2: ClaimType
Box 3: ClaimTypes
Box 4: ClaimType
Similar example:
For Box 1, see line 15.
For Box 2, see line 22.
For Box 3, see line 22.
For Box 4, see line 26.01 using System;
02 using System.Collections.Generic;
03 using System.Linq;
04 using System.Web;
05 using Microsoft.IdentityModel.Claims;
06
07 namespace MVC3MixedAuthenticationSample.Models
08 {
09 public class IdentityClaim
10 {
11 private string _identityProvider;
12 private string _identityValue;
13 public const string ACSProviderClaim
=”http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider”;
14
15 public IdentityClaim(IClaimsIdentity identity)
16 {
17
18 if (identity != null)
19 {20 foreach (var claim in identity.Claims)
21 {
22 if (claim.ClaimType == ClaimTypes.NameIdentifier)
23 {
24 _identityValue = claim.Value;
25 }
26 if (claim.ClaimType == ACSProviderClaim)
27 {
28 _identityProvider = claim.Value;
29 }
30
31 }
32 }
33
34 }
The “correct answer picture” doesn’t match the explanation. I guess the explanation provides the correct answer.
of course. Correct answer
IClaimsIdentity
ClaimType=claimTypes
ClaimType
Agree
IClaimsIdentity
ClaimType=claimTypes
ClaimType
https://garvincasimir.wordpress.com/2012/04/05/tutorial-mvc-application-using-azure-acs-and-forms-authentication-part-1/
[url=http://www.gowatchs.com/brand-258.html]ブランドコピー時計大人気を海外激安通販専門店ロレックス、ブルガリ、フランク ミュラー、シャネル、カルティエ、オメガ、IWC、ルイヴィトン、オーデマ ピゲ、ブライトリング、グッチ、エルメス、パネライ、パテックフィリップ偽物(コピー商品)のブランドの腕時計の販売、通販。[/url]
agree 🙂
ヴィトン ポーチ スーパーコピー mcm http://www.bestevance.com/Hermes-1/index.htm
Thanks a bunch! It a amazing webpage!.
csgo http://www.americanbusinessbuilder.com/business_classifieds/foreclosure_cleanup/build_a_website/16937_cheap_csgo_skins_fast_to_boot_considering_how_reasonably