SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have configured Sharepoint with ADFS (claims-based auth). There is another web site (probably on a different machine) that shall be shown in a web part - just like page viewer it is hosted in an iframe. The url to that web part can be configured by the web part. To be able to do that, the other web site is contacted from the Sharepoint server via c# code.

Unluckily as the response of my httpwebrequest I get the login screen of ADFS back. When switching autoredirect to false, one can see the try to redirect to log in screen.

The problem here seems to be that the credentials will not be delivered to the web site via the web request as the call is done on server side not from browser (where it will probably work).

Is there any possibility to make that working? - probably by sending the used cookies to the server? - delegating the user information to the adfs login page?

share|improve this question

Sounds like you are trying to send a "claim" to a non-claims application (your remote web site).

If SharePoint and your other webapp are in the same domain, You may be able to utilize the claims to windows token service (ADFS 2) or the ADFS agent (ADFS 1.1) to consume the claim on the external webapp. Admittedly I have no experience implementing this.

Otherwise you will probably need to send these credentials manually in code or utilize the secure store service.

share|improve this answer
No, both applications are claims-enabled. ADFS seems to support only 1. Call from browser to server (passive) 2. Call from server side (Sharepoint) to any other server only via WCF configured as WS-Trust. (active) Calling another claims based application from the Sharepoint server seems to be not accomplish-able with HttpWebRequest without reinventing the whole stuff. Is it really a mixture of both active and passive? – Holger Leichsenring Sep 5 '11 at 17:37
Wish I could provide further insight, but unfortunately, that's going a bit beyond my scope of knowledge. If you have not, you may want to check out the MSDN page here which is the launch pad for the identity management. I would also post in the identity/ADFS forums – Jesus Shelby Sep 6 '11 at 14:14
I'll have a look onto that. Thanks for your help anyway :-) – Holger Leichsenring Sep 13 '11 at 8:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.