Frappe Cloud Support Partners Foundation Frappe School

Fetch Data from API using id token from AWS Cognito User Pool

Below is the setup

  • Created Cognito User Pool with hosted UI
  • Have a standalone PHP app which performs the authentication and gets the ID token from AWS Cognito
  • Have setup the same cognito client in ERPNext as Social Login

I am able to login with the cognito user id and password from ERPNext Login Screen which redirects to Cognito Hosted UI to input the id and password

What i want to achieve is, the PHP app wants to interact with ERPNext with the id token returned by cognito

Is this possible?