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

  • Question

  • 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
    Sunday, August 30, 2015 2:57 AM

All replies

  • 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.


    Regards,

    Satyajit

    Please “Vote As Helpful” if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

    Wednesday, September 9, 2015 4:59 AM