title: How to implement Client Credential Flow with Azure AD as Identity provider for Cognito
body: <p>We have an application hosted on AWS using Cognito Service, with Azure AD acting as the Identity provider. The solution works great with username and password, authenticating against the Cognito user pool.</p>
  <p>We now need the above to work for service-to-service call scenario.</p>
  <p>The unattended scheduled service will call another service (all hosted in AWS) but will need to authenticate with access token.<br />
  I was thinking of using client credential flow. But I could not find an approach which will work for the above scenario (i.e) client credential flow with Cognito using Azure AD as Identity provider.</p>
  <p>When I go Azure AD Application Registration and view the endpoints, the oauth2/token endpoint shows up, but I have not figured out how this will work with Cognito.</p>
  <p>Does any one know how to implement this?</p>