Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jwt with cakephp3 acl #13

Open
jkimilu opened this issue Jan 21, 2018 · 4 comments
Open

Jwt with cakephp3 acl #13

jkimilu opened this issue Jan 21, 2018 · 4 comments

Comments

@jkimilu
Copy link

jkimilu commented Jan 21, 2018

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 jkimilu closed this as completed Jan 21, 2018
@jkimilu jkimilu reopened this Jan 21, 2018
@orfevre2013
Copy link

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?

@sourjya
Copy link

sourjya commented Jan 25, 2019

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.

@jkimilu
Copy link
Author

jkimilu commented Jan 25, 2019 via email

@sourjya
Copy link

sourjya commented Jan 25, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants