uafrica / oauth-server

OAuth Server
Other
51 stars 51 forks source link

Client authentication failed. #14

Closed surjit closed 9 years ago

surjit commented 9 years ago

I have this url http://cakephp.3/oauth/authorize?response_type=code&client_id=34556&client_secret=demo&redirect_uri=http://cakephp/client/receive_authcode

I'm getting error Client authentication failed. League\OAuth2\Server\Exception\InvalidClientException

INSERT INTO oauth_clients (id, client_secret, name, redirect_uri, parent_model, parent_id) VALUES ('34556', 'demo', 'demo', 'http://http://cakephp.3/', NULL, NULL);

I Know, it's something I'm doing wrong, please guide me, how to fix this

dakota commented 9 years ago

The redirect_uri in the db needs to be identical to the one passed in by your client.

surjit commented 9 years ago

thanks, It's solved