Reputation: 49
I'm running a SharePoint 2019 Server on-premise and want to connect via API or CSOM by using C#
Most samples out there just show how to authenticate against SharePoint Online by using Graph API or Azure AD / Entra ID. I don't have an ADFS server available to use STS.
Is there any alternative to authenticate, e.g. using client id and client secret? The App-Only approach also seems to require an ADFS, right? At least all samples I have seen also use https://accounts.accesscontrol.windows.net/
Upvotes: 0
Views: 230
Reputation: 344
Please refer this article: Granting access using SharePoint App-Only.
In this way, we can connect to SharePoint using client id and client secret.
Upvotes: 0