We would like to use AWS Cognito in order to configure Square as an OpenId Connect provider, such that we would not have to deploy a server in order to take care of the OAuth flow backend.
An OpenID Connect provider must have the following endpoints in order to configure an OpenID Connect provider in AWS Cognito: authorize, token and userinfo.
As per the documentation (OAuth API - Square API Reference) there seem to be the authorize and token endpoints available from the Square server, but no userinfo endpoint, and no mention of OpenID Connect.
Is OpenId Connect supported by Square, and if so can you provide guidance on what we will need to specify the userinfo endpoint or anything else that we will need to properly configure Square as a provider in AWS Cognito ?
Bottom line is we do not want to deploy a server, we do everything serverless, and by experience AWS Cognito does the job perfectly with OpenID Connect providers from Google, Microsoft and others.
Does anyone have any success with Square authorization on top of AWS Cognito, Auth0 or Okta, to name a few ?
Any guidance or recommendation would be much appreciated.