uafrica / oauth-server

OAuth Server
Other
51 stars 51 forks source link

How to validate the token #70

Open DinoSane opened 6 years ago

DinoSane commented 6 years ago

I'm using oauth-server plugin with cakedcUser plugin.

So am plannning to have a server to a product with authenticated and non authenticated pages + oauth server API with password grant API to the correspondent mobile app.

But I'm unable to create a route pointing to a Controller->Action which is authenticated by the generated token.

Right now, either CakeDCUser plugin asks for login/password or the Controller->Action is accessed freely.

Can you post a example of how check the TOKEN and clear the webservice page access?