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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -