Entra OAuth2
1. Login Entra Admin Center
Before you start to do OAuth2 authentication, you need to login Entra Admin Center.


Copy the client ID, you will use it later.

-
Give it a name and upload logo (download logo)





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.


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 an account and setup it manually


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


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

