Forum Discussion

dgrillo2025's avatar
dgrillo2025
Copper Contributor
May 22, 2025

Sharepoint Basic auth authentication effect SharePointOnlineCredentials?

I'm wondering if the announcement of Basic auth deprecation for SP online mentioned here

https://learn.microsoft.com/en-us/sharepoint/technical-reference/basic-auth-is-being-deprecated

affects the use of the SharePointOnlineCredentials method of logging in via .net CSOM APIs.

 

I'm aware it takes username and password but I thought it was actually classified as a form of Claims Based Authentication not basic.

I  know on the client side, newer CSOM libs don't include that structure any more. But that doesn't mean the server will no longer accept that means of login.

 

The object I'm talking about is 

https://learn.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.client.sharepointonlinecredentials.-ctor?view=sharepoint-csom&devlangs=csharp&f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(Microsoft.SharePoint.Client.SharePointOnlineCredentials.%23ctor)%3Bk(TargetFrameworkMoniker-.NETFramework%2CVersion%3Dv4.8)%3Bk(DevLang-csharp)%26rd%3Dtrue

 

And the means of using it would be like this

SharePointOnlineCredentials creds = new SharePointOnlineCredentials(sUserName, securePassword);

ClientContext ctx.Credentials = creds;

string authCooke = creds.GetAuthenticationCookie(Sharepointuri);

No RepliesBe the first to reply

Resources