Closed surjit closed 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);
oauth_clients
id
client_secret
name
redirect_uri
parent_model
parent_id
I Know, it's something I'm doing wrong, please guide me, how to fix this
The redirect_uri in the db needs to be identical to the one passed in by your client.
thanks, It's solved
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