Closed MehrdadKamelzadeh closed 9 years ago
There is no redirect URI configured for AS in IdSrv
I think that was the problem. but now I get another error. if you help me out with that I really appreciate it.
"WIF10201: No valid key mapping found for securityToken: 'System.IdentityModel.Tokens.X509SecurityToken' and issuer: 'http://identityserver.v2.thinktecture.com/samples'."
That probably means that the certificate thumbprint or issuer name in your config is not correct.
One way to generate the config snippet is to use the VS2013 web project wizard (organizational accounts, on-premise). Then copy the relevant config over to AS.
I found the problem which was adding "thumbprint" of IdSrv to identityModel.config in AS. just for the guys have the same problem, I simply copied the "Signing Thumbprint" to AS identityModel.Config:
<issuerNameRegistry type="System.IdentityModel.Tokens.ValidatingIssuerNameRegistry, System.IdentityModel.Tokens.ValidatingIssuerNameRegistry">
<authority name="IdP">
<keys>
<add thumbprint="F597EAF6B1842E2B59B4D63A594B2CF207E0EE08" />
</keys>
<validIssuers>
<add name="http://identityserver.v2.thinktecture.com/samples" />
</validIssuers>
</authority>
</issuerNameRegistry>
cool
Yes Dominik. thank you very much for your help.
I have hosted both AS and IdSrv as you explained in the videos. the Idsrv is working fine.
I also added AS as a Relying Party in IdSrv. and changed the IdentityModel.service.config and autofac.config as following: