kvz / cakephp-rest-plugin

Discontinued: recent cakephp versions overlap functionality, there also is @ceeram's plugin. Painless REST server Plugin for CakePHP
http://kvz.io/blog/2010/01/13/cakephp-rest-plugin-presentation/
169 stars 37 forks source link

Own authorization method #5

Closed primeminister closed 13 years ago

primeminister commented 13 years ago

He Kevin, Want to have my own Auth. Is this simple like creating an own method in a controller and that is it? If not, would be nice. Maybe something like Felix has done with the Authsome plugin authentication.

kvz commented 13 years ago

The REST api doesn't deny or allow anything. It only parses & passes auth information to your controller. There you (or your components) can do whatever they want with it. I think there's examples in the docs for that.

primeminister commented 13 years ago

When you want to authenticate you use the authentication based on Amazon with key TRUEREST. I could of course not se that and write my own auth and check on that.

Would be nice for a complete plugin to overwrite the auth method you use in the plugin. maybe a bit overkill ;)