I am implementing an Oauth2 server on my side with PHP using OAuth2 - PHPLeague
https://oauth2.thephpleague.com/
Issue #01
I have configured email and password as Authentication Fields
Then I add them to the Authorization url so I can do validation and authentication on my oauth2 server.
This part is working, but I am wondering if I can send it through the header to avoid having to encode it in the url?, I have tried adding these parameters to the headers form, but after I save the header is removed. Not sure if I am missing a naming convention on headers params,
Issue #02
I am not able to show an error in zapier when calling authorization endpoint. I have tried returning a PSR7 response and simple json response.
But I only see a white screen, what is the correct error response format?
Issue #03
On the Authorization request I return the user id, but I also need to return other user info to use on the Connection Label. On the test endpoint I had no problems since I found an example where I needed to return a json with: id, name and email fields, but not sure how to do it when doing the full process: Authorization Url + Access Token Request, not sure in what point you read that info.