Hello Matilda,
Good day!
Thanks for reaching out. I understand that you're experiencing authentication issues when transmitting files through Microsoft Server using FERN or Payroll Manager, resulting in error messages indicating that the client isn't authenticated or basic authentication is disabled. You've identified that Outlook's two-step verification, which requires a security code sent to a cell phone or another email, is likely causing the issue.
To better understand the problem, can you please clarify:
1. What version of Outlook do I have? - Microsoft Support
- Have you enabled multi-factor authentication (MFA) for your Microsoft account?
- Are you using Exchange, Office 365, or a different email service?
- Are the FERN and Payroll Manager tools configured to use SMTP or another protocol?
5 Have you already registered your application with Azure Active Directory (Azure AD)?
Here’s why this is happening: Microsoft has disabled basic authentication for security reasons. Instead, they recommend using OAuth 2.0, which provides a more secure way to authenticate.
Register Your Application with Azure Active Directory (Azure AD):
- Go to the Azure portal.
- Select Azure Active Directory > App registrations > New registration.
- Enter your application name.
- Choose the supported account types.
- Set the redirect URI (Web) to
https://login.microsoftonline.com/common/oauth2/nativeclient and register.
Configure Permissions for Your Application:
- Under Manage, click on API permissions.
- Click on Add a permission, select Microsoft APIs, then choose Outlook API.
- Add the necessary delegated permissions (e.g.,
Mail.ReadWrite).
Get Client ID and Secret:
- After registration, note down the Application (client) ID.
- Under Certificates & secrets, generate a new client secret.
Implement OAuth 2.0 Authorization in Your App:
- Your app must implement the OAuth 2.0 authorization flow. Redirect users to the Microsoft identity platform endpoint (
https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize) with parameters like client_id, response_type (‘code’), scope (‘https://outlook.office.com/Mail.ReadWrite’), redirect_uri, etc.
- After user consent, they will be redirected back with an authorization code.
- Your app should then exchange this code for an access token
Update Your Application’s Configuration:
- Use the client ID, client secret, and access token in your application’s configuration settings.
- Ensure your application uses the SASL XOAUTH2 format to encode and transmit the access token.
For more detailed instructions, you can refer to the Microsoft documentation on OAuth 2.0
Note*: Please understand that our initial reply may not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.*
If this issue still persists after trying the following steps, it might be best to contact your IT administrator to create a support request - Get Support - Microsoft 365 Admin |Microsoft Learn so you can get real time assistance. Our technical experts have access to advanced tools and resources that allow them to thoroughly investigate issues, collect logs, and perform remote sessions to configure your settings. This approach will provide the most effective solution. Rest assured, I will keep an eye on the progress and follow up to ensure a permanent solution office.com after you open a service request.
Thank you for your patience and cooperation. I look forward to working to resolve your issue once your service request is opened. Have a great day.
Best regards,
Eleni | Microsoft Community Moderator.