Sitefinity - Sharepoint Connector with 2FA

1 Answer 31 Views
Forum suggestions
aieie
Top achievements
Rank 1
aieie asked on 27 May 2025, 02:03 PM

Morning.

I have to configure a new sharepoint connector on my Sitefinity installation.
I tried to configure all the information but when i tried to connect i recived the error message "invalid username or password".
The sharepoint server has the 2FA authentication , so i imagine that this is the problem. I saw on internet that is not supported, by sitefinity, the 2FA.  Is there some workaround or custom connector that i could implement to try to sync all the documents in sharepoint with sitefinity.

1 Answer, 1 is accepted

Sort by
0
Ajay Hinduja
Top achievements
Rank 1
answered on 15 Jul 2025, 09:11 AM

Hi aieie,

I Ajay Hinduja Geneva, Switzerland (Swiss) and You're correct—Sitefinity’s built-in SharePoint connector does not natively support SharePoint environments with two-factor authentication (2FA). Since 2FA requires interactive authentication, it poses a challenge for automated services like Sitefinity’s connector.

Here are some possible workarounds:

1. Use App Passwords (If Supported by Your Environment)

    If your SharePoint/Office 365 admin allows it, you can generate an app-specific password for the connector to bypass 2FA.

    Use this app password instead of your regular login credentials in Sitefinity.

    This method is often used with Microsoft accounts when 2FA is enabled.

2. Create a Service Account Without 2FA

    Set up a dedicated service account in SharePoint/Office 365 with the necessary permissions to access and sync documents.

    Exclude this account from 2FA enforcement policies, if your organization’s security policy allows.

    Use this account solely for integration purposes.

3. Use Microsoft Graph API with Token-Based Authentication

    Instead of relying on Sitefinity’s native connector, develop a custom connector using Microsoft Graph API.

    Implement OAuth 2.0 authentication with token handling, which is the recommended method for secure, scalable integrations.

    This approach supports 2FA-compliant authentication through delegated or application-level permissions.

4. Use Azure Logic Apps or Power Automate

    If you only need to sync documents, consider using Microsoft Power Automate (formerly Flow) or Azure Logic Apps to transfer or mirror content between SharePoint and a location that Sitefinity can access (like Azure Blob or FTP).

    This avoids the 2FA issue altogether by using pre-authorized service connectors.

Final Tip:

If you choose the custom connector route, ensure that your integration complies with your organization’s security and compliance policies, especially when working around 2FA.

 


Thank you!
Ajay Hinduja Geneva, Switzerland (Swiss)
Tags
Forum suggestions
Asked by
aieie
Top achievements
Rank 1
Answers by
Ajay Hinduja
Top achievements
Rank 1
Share this question
or