SharePoint connection with two-factor authentication

Sylvain C. asked on January 9, 2026 20:39

Hello,

I am having a website developed using Kentico 13 and .Net Core and its current hotfix is 114.

We have been using the SharePoint Connections for years and it has been working fine until recently. To increase security, we had to upgrade the account that we used for the SharePoint connection to two-factor authentication. Since the connection stopped working.

The log for the time being is
Message: The property or field 'Url' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

Exception type: Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException
Stack trace:
at Microsoft.SharePoint.Client.ClientObject.CheckUninitializedProperty(String propName)
at Microsoft.SharePoint.Client.Site.get_Url()
at CMS.SharePoint.SharePointOnlineSiteService.GetSiteUrl()
at CMSModules_SharePoint_FormControls_ConnectionTest.TestConnection() in C:\Users\...\CMS\CMSModules\SharePoint\FormControls\ConnectionTest.ascx.cs:line 104

The URL works fine so the issue is related to this new authentication. What do I need to do to be able to set up the Sharepoint Connection with a two-factor authentication account?

Thnak you,

Sylvain

Recent Answers


Juraj Ondrus answered on January 12, 2026 05:32

Duplicate of this thread

0 votesVote for this answer Mark as a Correct answer

Sylvain C. answered on January 12, 2026 10:41

Yes Juraj, I also posted on SO as I wasn't sure after 2 days if my question was going to be published on devnet. Still looking for answers.

Thank you

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 12, 2026 11:59

There was the weekend, we do not monitor this community portal over the weekends ;-)
To answer your question - there does not seem to be an out of the box way or setting for this. You would need to use a user account without MFA. Or, implement some fully custom module/connector to SharePoint if you need to keep the MFA enabled for that user account.

0 votesVote for this answer Mark as a Correct answer

Sylvain C. answered on January 12, 2026 12:27

Thank you Juraj and sorry for my impatience. So even if I apply the latest hotfixes for my Kentico Xperience 13, there is no possibility that a user account MFA would work with the SharePoint Connection module? In our case, it is an Entra ID. I saw that there are some providers for Xperience by Kentico but limited information for Kentico 13. Considering that this type of authentication is quite standard now, would you have any documentation or advices in order to be able to set up a SharePoint Connection for the Entra ID account?

Thank you in advance for your help,

Sylvain

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 12, 2026 12:41

I Am adfraid but Kentico 13 is no longer being developed or improved. Also, I do not know how the MFA would work here - how would the Kentico app use the other authentication method. If you are using Entra ID, then I would use some token based access - EntraID is using OAuth, so you could use that approach in your custom module and store the credentials in some key vault or similar. I am afraid but we do not have experience with this customization yet.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.