Link to home
Start Free TrialLog in
Avatar of hrappapo
hrappapo

asked on

Exchange 2010 OWA Forms Based Login via Exchange Web Services Managed API

How do I/Is it possible, to authenticate to OWA 2010 using FBA, and receive the sessionid and cadata cookies back?

All I can find on the matter is articles related to owa 2003 and 2007, most suggesting to perform a POST directly to owaauth.dll. I have tried to adjust the code to work with 2010, by pointing to /owa/auth.owa, but the closest I get is a 440 Login Timeout error. Logging in through the client works fine.

Using EWS Managed API, I can authenticate and get data, but the CookieContainer object is empty unless I run a query first. The cookie it returns after doing so is named "exchangecookie" and does not help me so much.

Am I missing something? or is this just not done in 2010 now?

Thanks
Avatar of LeeDerbyshire
LeeDerbyshire
Flag of United Kingdom of Great Britain and Northern Ireland image

You only had to do that with WebDAV when FBA was enabled on the Exchange VDir.  EWS POSTs to the EWS VDir, and I don't think it's possible to enable FBA on it.  Or, at least, there is no good reason to ever do so.
Avatar of hrappapo
hrappapo

ASKER

The reason to do so, is to create a single sign on from our external web app to Outlook Web App. I can do this via SharePoint Web Services to create an FBA ticket via the cookies in the response, and I am attempting something similar with exchange.
ASKER CERTIFIED SOLUTION
Avatar of LeeDerbyshire
LeeDerbyshire
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial