rest - Not able to access resource using access token using codeigniter-oauth2-server -
i'm using following project rest api authentication in codeigniter:
https://github.com/grasses/codeigniter-oauth2-server
i'm able token. however, i'm not able access resource using token.
when i'm trying access resource, returns me empty array.
the route correct way.
i figure out because of line oauth2/resoource.php:
$this->server->require_scope("userinfo cloud file node");
if comment out line, i'm getting response:
{"success":true,"message":"you accessed apis!"}
but in case, doesn't validate access token. remove access token or send invalid access token, still gives me same response.
Comments
Post a Comment