How do I do auth with Exchange Online Federated in command line with just a user and pass?

Hi,

We have an internal command line application. This command line application asks the user for their Exchange Online email and password. We have a Office 365 Federated set up and this application will be used outside of our company's corporate network.

We would like the user to be authenticated with Exchange Online with just the username and password. We cannot open a browser window for SSO OAuth token generation. It must all happen in command line (similar to how IMAP or POP authentication is done with just username and password).

Can I get some pointers on how to achieve this? Any sample code would also be really helpful.

Thanks!

TDG


  • Edited by Tarra D G Sunday, August 30, 2015 2:57 AM Added SSO keyword
August 30th, 2015 2:57am

Hi Tarra,

You have to disable TLS to allow AUTH LOGIN (basic wihout tls) or make the application smart enough to handle NTLM Challange authentication.

Telnet using AUTH NTLM to exchange 2013

If you want to give admins access using EMS, then its straight forward, using the /powershell virtual diectory.

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 12:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics