Search code examples
outlookexchange-serveroutlook-web-app

exchange 2003 owa include username/password in a url string


I have an existing Microsoft Exchange 2003 OWA installation that is currently being used:

https://mail.mydomain.com/exchange/

I have a web application that uses session variables to store username and password. What is the proper syntax to construct a URL string that includes the username and password without requiring them to login? I am thinking it would be something like

https://mail.mydomain.com/exchange/?username=user&password=pass

Is there an easy way to do this?


Solution

  • OWA isn't going to accept the creds this way. If you're using Forms Based Auth, you can either fabricate the cookie for it or do a post and simulate the user logging in to get the cookie. If it's using Windows Integrated Auth, you don't have much in the way of options. Basic authentication works by putting creds in HTTP headers so you could potentially simulate this.