About OAUTH2 for authentication: https://docs.microsoft.com/en-us/graph/auth-v2-user

Microsoft Graph Application registration#


It requires Microsoft Graph Application registration. Start at the Microsoft azure portal:
https://azure.microsoft.com/en-us/features/azure-portal/

Application registration: Go to the App registrations and click on New registration:


attachments

Name it. Select the Multitenant and personal Microsoft accounts type. The redirect url must ends with :register_microsoft_graph_api/. Then click on register.

attachments
API permission : You also need to provide permission for the Microsoft Graph. Go to the Api permission. Click on Add permission, select Microsoft Graph. Choose Delegated permission and add the " SMTP.Send" or/and "IMAP.AccessAsUser.All" permission:

attachments
attachments

Client id : You can find it at Azure portal -> App Registration -> Overview:

attachments

Secret key : A new client secret needs to be created as well. Go to the "Certificate & secrets" and generate a new secret key. Click on New client secret:

attachments

SMTP settings
#


Provide the smtp server used for emailing (for example : smtp.office365.com)
Click on Get Refresh Token button.
In order to get the Refresh token, CrushFTP WebInterface's host and port number must match with the redirect url specified at Azure Application Registration.
Put the Client Id and Secret (from Azure App Registration) and "common" for tenant input field.

attachments

Click on OK button, allow CrushFTP to have access to send Email. As the end of the result the SMTP Username and Password will filled the Client ID and the Refresh Token.
It is required to provide the from email address too.

attachments

PopImapTask#


Provide the host and click on the Get Refresh Token button.
In order to get the Refresh token, CrushFTP WebInterface's host and port number must match with the redirect url specified at Azure Application Registration.
Because the email address is essential after you got the refresh token, the Mail Username input field needs to be modified.
Put your email address ended with tilde(~) in the beginning of the Mail Username input field.

Mail Username : <<your email address>>~<<what was before>> 

attachments

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
client_id.png 92.7 kB 1 31-Mar-2021 13:46 krivacsz
png
new_registration.png 86.9 kB 1 31-Mar-2021 13:30 krivacsz
png
new_secret.png 138.7 kB 1 31-Mar-2021 13:49 krivacsz
png
permission_final.png 209.0 kB 1 31-Mar-2021 13:44 krivacsz
png
permission_microsoft_graph.png 182.9 kB 1 31-Mar-2021 13:39 krivacsz
png
pop_imap_task.png 79.9 kB 2 31-Mar-2021 14:41 krivacsz
png
register_app.png 230.6 kB 1 31-Mar-2021 13:33 krivacsz
png
smtp_from_email.png 50.3 kB 1 31-Mar-2021 14:17 krivacsz
png
smtp_get_refresh_token.png 44.7 kB 2 31-Mar-2021 14:05 krivacsz
« This page (revision-29) was last changed on 31-Mar-2021 14:58 by krivacsz
G’day (anonymous guest)
CrushFTP10 | What's New

Referenced by
LeftMenu

JSPWiki v2.8.2