The above suggests you can post the values; email and password solely to {{domain}}/oauth/token and if valid expect the valid tokens.
This will only give you access token. What else are you expecting?
Laravel documentation specifies:
Once you have created a password grant client, you may request an access token by issuing a POST request to the /oauth/token route with the user's email address and password.
The above documentation doesn't appear correct. The above suggests you can post the values; email and password solely to {{domain}}/oauth/token and if valid expect the valid tokens.
This didn't work for me on a variety of attempts, below was the returned response:
{
"error": "unsupported_grant_type",
"message": "The authorization grant type is not supported by the authorization server.",
"hint": "Check the `grant_type` parameter"
}
I hooked up my own Guzzle post with hardcoded oauth_client attributes.
I was able to get a workaround easily, it bugs me that something apparently simple didn't run for me. Any clarity on this would be appreciated.
Please or to participate in this conversation.