You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server.php code should probably also include:
// Add the "password" grant type (this is where the oauth magic happens)
$server->addGrantType(new OAuth2\GrantType\UserCredentials($storage));
This is also important for people trying the demo app later.
Thanks,
The text was updated successfully, but these errors were encountered:
The UserCredentials grant type is not where the OAuth magic happens. The magic happens with Authorization Code and Implicit grant types, where the flow is 3-legged.
We have an example of UserCredentials grant type here, and there is another example in the demo app, so I don't see the usefulness in adding the line of code above.
Hello,
Great work on this, very educational and helpful. Many thanks.
Here:
http://bshaffer.github.io/oauth2-server-php-docs/cookbook/
The server.php code should probably also include:
// Add the "password" grant type (this is where the oauth magic happens)
$server->addGrantType(new OAuth2\GrantType\UserCredentials($storage));
This is also important for people trying the demo app later.
Thanks,
The text was updated successfully, but these errors were encountered: