We enabled SAML for users but the internal .NET service still uses client_credentials. The docs state ‘SAML authentication does not affect API access’ but /api/v2/oauth/token returns 401. Here is the call:
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.mypurecloud.com/api/v2/oauth/token");
request.Content = new StringContent($"grant_type=client_credentials&client_id={clientId}&client_secret={secret}", Encoding.UTF8, "application/x-www-form-urlencoded");
var response = await _httpClient.SendAsync(request);
Is the tenant locked down?