Entra OAuth2



1. Login Entra Admin Center

Before you start to do OAuth2 authentication, you need to login Entra Admin Center.
  • Register an Application and acquire your OAuth 2.0 Client IDs
  • Configure Branding
  • Create authentication credentials




  • Create secret for authentication




    • Copy Client Secret right now, because it only can access at the begining. If you don't copy it, you need to create a new one.


    2. Input required information in RaidenMailOAuthProxy to complete settings.

  • Input your outlook email, Client ID and Client Secret in RaidenMailOAuthProxy.




    • Authorization code is acquired.




      Access Token is acquired.


      Congratulations! You already complete all steps for Entra OAuth2 Authentication. RaidenMailOAuthProxy is ready to go.
      Please be aware of the Acces Token is valid for 1 hour and the Refresh Token is valid for 90 days, which means you need to redo authorization in 90 days to make RaidenMailOAuthProxy works continuously.


    4. Configure your Mail Client. Here is an example for outlook.

  • Add account
    • Add an account and setup it manually




  • IMAP4
    • Input any password. SMTP uses 587 port with STARTTLS, IMAP4 uses 10993 port with SSL.




  • POP3
    • Input any password. SMTP uses 587 port with STARTTLS, POP3 uses 10995 port with SSL.