Sharepoint on-prem vs Online

persistent_test 91 Reputation points
2022-07-13T11:52:36.81+00:00

Need to know more if we can use authentication like this for both on-prem and online sharepoint :
final ClientSecretCredential clientSecretCredential = new ClientSecretCredentialBuilder()
.clientId(client_id)
.clientSecret(secret)
.tenantId(tenant)
.build();

authProvider = new TokenCredentialAuthProvider(clientSecretCredential);  

// Build a Graph client  
graphClient = GraphServiceClient.builder()  
    .authenticationProvider(authProvider)  
    .buildClient();
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Yichen Name 86 Reputation points
    2022-07-22T10:24:39.177+00:00

    Is this for sharepoint on-prem versions or online?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.