Hi Tim,
It is really a little hard, but here I have a step by step for you:
# after connect to azure portal
1 - Microsoft Entra ID
https://portal.azure.com/#blade/Microso ... yMenuBlade
2 - App Registration
https://portal.azure.com/#view/Microsof ... steredApps
Click in "+ New Registration"
Enter a Name to your application and choose who can connect.
in my test I have checked:
"[X] Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)"
In the redirect URI
Platform select "Web"
Enter the address (example): "
http://localhost:5500/"
( It will be the redirect_uri )
and click in Register
On the next screen on the right side you will see the option: Client credentials -> Add a certificate or secret
( or from Menu go to the option "Certificates & secrets" )
Click in New client secret, in description field enter something "I have added FiveTech" and next select number of month
expires ( I have selected 24 months ) and click in ADD.
In the next screen copy the VALUE and Secret ID
( client_secret )
( the client_id you need to take from the app registration )
Now on the left side menu, click in API Permissions
Click in Add Permission:
You need add "Microsoft Graph"
Then click in Delegated Permissions
and select the options below:
Section OpenID permission:
-> offline_access
-> openid
-> profile
Section IMAP:
-> IMAP.AccessAsUser.All
Section POP:
-> POP.AccessAsUser.All
Section SMTP:
-> SMTP.Send
Section User:
-> User.Read
Then click in ADD permissions
That's all.