cakephp-3-acl-example icon indicating copy to clipboard operation
cakephp-3-acl-example copied to clipboard

Jwt with cakephp3 acl

Open jkimilu opened this issue 7 years ago • 4 comments

Been able to successfully implement your plugin for role based authentication in my app. If you could guide me on how to authenticate api requests using the same. And If it is also possible to check if has permissions in the same api call. Thanks for providing us with this cute plugin.

jkimilu avatar Jan 21 '18 07:01 jkimilu

please i'm triying to do the same thing in my application but cannot get it works. Got error aro not found. Did you encountered this issue? can you help me?

orfevre2013 avatar Jan 21 '18 11:01 orfevre2013

Please see this article at BravoKernel: http://www.bravo-kernel.com/2015/04/how-to-add-jwt-authentication-to-a-cakephp-3-rest-api/. It has a comprehensive guide on how to authenticate against CakePHP using Json Web Tokens (JWT). This was super helpful is getting my API kickstarted.

However, authorization of actions is a different story. Still haven't been able to solve that and on the lookout for good examples.

sourjya avatar Jan 25 '19 13:01 sourjya

I will have a look. Helpful,always.

Thanks

Joel

On Fri, 25 Jan 2019, 16:34 Sourjya Sankar Sen <[email protected] wrote:

Please see this article at BravoKernel: http://www.bravo-kernel.com/2015/04/how-to-add-jwt-authentication-to-a-cakephp-3-rest-api/. It has a comprehensive guide on how to authenticate against CakePHP using Json Web Tokens (JWT). This was super helpful is getting my API kickstarted.

However, authorization of actions is a different story. Still haven't been able to solve that and on the lookout for good examples.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/mattmemmesheimer/cakephp-3-acl-example/issues/13#issuecomment-457574212, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7SZZm4eRbloDUsOUyeSY05pfqgjNTOks5vGwfygaJpZM4Rluss .

jkimilu avatar Jan 25 '19 14:01 jkimilu

Here is another article on similar lines: https://trinitytuts.com/secure-cakephp-web-services-using-jwt/. I suggest you sift through both and combine the best features.

Cheers.

sourjya avatar Jan 25 '19 15:01 sourjya