Hi,
I am trying to use the WSFederationMessage.CreateFromUri() to get aSignInRequestMessage in order to generate a token for a client that is authentifying.
My request comes from an ASP.NET MVC 4.0 website (RP) and the custom STS I am coding is also on ASP.NET MVC 4.0.
Following my previous question : http://social.msdn.microsoft.com/Forums/en-US/Geneva/thread/23944a4b-d85d-441d-969d-a4be7a2caebb/, I got some inspiration from ThinkTecture excellent code (and product) but I am pulling my hair out with the exception on CreateFrom Uri in my environment:
ID3094: Cannot create WS-Federation message from the given URI 'http://localhost:8004/Account/Login?ReturnUrl=%2F%3Fwa%3Dwsignin1.0%26wtrealm%3Dhttp%253A%252F%252Flocalhost%253A8002%252F%26wctx%3Drm%253D0%2526id%253Dpassive%2526ru%253D%25252F%26wct%3D2013-03-20T11%253A12%253A49Z'.
When I configure my RP to call an issuer that is the one provided by the sample code from Microsoft "Custom Token", everything works. The issue is on my custom STS (MVC 4.0).
Any idea?
Thanks.
Omid Bayani - KwypeSoft