IdentityServer / IdentityServer3

OpenID Connect Provider and OAuth 2.0 Authorization Server Framework for ASP.NET 4.x/Katana
https://identityserver.github.io/Documentation/
Apache License 2.0
2.01k stars 764 forks source link

Console client to WebAPI to WCF (Multihop fails) - error Internal server error (500) #2998

Closed smuthiya closed 8 years ago

smuthiya commented 8 years ago

Question

https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/Multi%20Hop%20Delegation%20(ActAsCustomGrant)

I am using above sample - in this I have replaced WebAPI2 with WCP (ws2007httpfederation) endpoint configured correctly (I can call from console application to WCF using jwt token (which is wrapped as saml token).

However when I call WCF from WebAPI (backend service to service all) it fails with above mentioned exception.

smuthiya commented 8 years ago

Further update - I get Internal server error (500) - without any further information about stacktrace. This i think happens somewhere RequiredScopeMiddleware.cs or PreserverSecurityTokenMiddleware.cs

So my question is - are there any additional config/coding needs to be done when making call from WebAPI to WCF?

smuthiya commented 8 years ago

Problem is solved now - issue was with certificate. Now my multihop is working.