Configuring ServiceDesk Plus OAuthentication
Microsoft has announced that it will begin disabling Basic Auth for Outlook, EWS, POP, IMAP, EAS, and RPS protocols in Exchange Online starting October 1, 2022. As an alternative, we have prepared a guide to help you transition to a more secure Oauth configuration.
1-) Check that Servicedesk Plus is running in “https” mode.
1-) After entering the ServiceDesk interface, go to the mail settings tab.
2-) After opening the incoming mail tab, select the following options.
Paste the following into the Connect URL field as seen in the screenshot above
https://outlook.office365.com/EWS/Exchange.asmx
You can then fill in both the email address and username fields by typing your email address.
3-) Log in to portal.azure.com with an authorized account. Proceed by selecting more services.
-Proceed by selecting the App registration option
4-) App Registrations, since we will be opening a new record, let's proceed by selecting the option below.
-Give a name for this record in the window that opens. We gave SDP here. Then fill in the Redirect URL field at the bottom by selecting the WEB option and entering your redirect url in the Servicedesk incoming mail tab. You can create your record by clicking the Register button.
You can find your redirect URL under the incoming mail tab after returning to the servicedesk interface.
5-) Fill in the Client ID, Authorization URL, Token URL fields as follows:
SDP
- OAuth 2.0 authorization endpoint (v2) and OAuth 2.0 token endpoint (v2)
Click on Azure; endpoint.
Copy the OAuth 2.0 authorization endpoint (v2) and OAuth 2.0 token endpoint (v2) fields in the window that opens and paste them into the auth url and token url fields in SDP.
6-) Certificate
Status update was made
SDP
Paste it into the SCOPE field and add ,offline_access at the end
https://graph.microsoft.com/EWS.AccessAsUser.All,offline_access

The last field has been filled in, now click the "save" button and save. After a while, enter your e-mail address and password in the pop-up window that appears. If the pop-up does not open, please disable the pop-up blocking in your browser and try again.