1
votes

I have successfully configured ADFS 2.0 on Windows Server 2012, and let it trust with my Web Application (ASP.NET MVC 4), but now I receive two default claims from ADFS, authenticationmethod and authenticationinstant.

All I configure in the ADFS console -> issues claims with my application doesn't work (like email,phone number).

I try to edit web.config, add the node claimType like below.

<system.identityModel>
  <identityConfiguration>
    <claimTypeRequired>
      <claimType type=URI optional=xs:boolean >
      </claimType>
    </claimTypeRequired>
  </identityConfiguration>
</system.identityModel>

But it throws an exception "Unrecognized element 'claimTypeRequired'".

Did I miss any step?

1

1 Answers

0
votes

Have a look at Use the On-Premises Organizational Authentication Option (ADFS) With ASP.NET in Visual Studio 2013 and ensure you follow the steps.

You can display the claims as per How To: Build Claims-Aware ASP.NET MVC Web Application Using WIF.

Are you sure that there are values in AD? You do not get claims for null values.