79640597

Date: 2025-05-27 13:44:23
Score: 1
Natty:
Report link

I'm told from other forums that the deprecation of basic authentication WILL effect this method of authentication.

https://learn.microsoft.com/en-us/answers/questions/2278336/sharepoint-basic-auth-authentication-effect-sharep

----

SharePointOnlineCredentials supports Kerberos, Ntlm and basic authentication. So it will not work with SharePoint online after basic support is dropped. For SharePoint online you should be switching to access tokens.

With access tokens you call the azure ad to get the token. If you want a user token, then a web browser is used to login to ad and get the token. You can also use an application clientid and secret (know as password flow) to login as an application (not a user) without a browser.

see docs

https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/using-csom-for-dotnet-standard

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dan G