...
Code Block |
---|
IConfidentialClientApplication app = ConfidentialClientApplicationBuilder.Create({ClientId}).WithTenantId({TenantId}).WithClientSecret({ClientSecret}).Build(); var token = await app.AcquireTokenForClient(new string[] {“ClientId$"api://{ClientId"]}/.default"}).ExecuteAsync(); |
...