Authentication with Azure Active Directory : WIF10201 Error -


i'm trying add azure authentication existing website visual studio 2013. looks used bit easier in 2012 seems recommended path 2013 set when creating project.

i created new project aad (which works) compare changes being made project need add authentication to. copied authentication classes , config settings still seems there wrong in web.config:

for appsettings have:

<add key="ida:federationmetadatalocation" value="https://login.windows.net/_____/federationmetadata/2007-06/federationmetadata.xml" /> <add key="ida:realm" value="https://aadpath/application" /> <add key="ida:audienceuri" value="https://aadpath/application" /> 

for system.identitymodel have:

  <system.identitymodel>     <identityconfiguration>       <issuernameregistry type="registryclasspath, projectname" />       <audienceuris>         <add value="https://aadpath/application"/>       </audienceuris>       <securitytokenhandlers> 

for system.identitymodel.services have:

<federationconfiguration>   <cookiehandler requiressl="true" />   <wsfederation passiveredirectenabled="true"                 issuer="https://login.windows.net/aadpath/wsfed"                  realm="https://aadpath/application"                  requirehttps="true" /> 

when run site, i'm redirected login page expect after logging in i'm presented wif10201: no valid key mapping found securitytoken error.

it not configuration rather didn't copy data embedded database existing project. seems working now.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -