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

Is it possible to turn off Ravel's authentication? #26

Closed
tpavlek opened this issue Jul 29, 2013 · 1 comment
Closed

Is it possible to turn off Ravel's authentication? #26

tpavlek opened this issue Jul 29, 2013 · 1 comment

Comments

@tpavlek
Copy link

tpavlek commented Jul 29, 2013

I've got my own authentication system built and running on my site, but I simply need a CMS to manage some content. Is there an easy way to disable ravel's authentication and just have it use Laravel's built in auth?

It all looked pretty hardcoded so I'm guessing not.

@raftalks
Copy link
Owner

Ravel is using the Auth class of Laravel for authentication, and if your custom authentication setup implements similar interface to Laravel core Auth class, then Ravel can actually use yours without much issues. However note that Ravel also uses ACL (Access Control List) of its own, which have dependency to the Auth Class.

However, since you have mentioned authentication system, in which I had a feeling that you are thinking of changing the process of authentication in terms of user groups permissions?

The current ACL of Ravel is very straight forward and can do most of the stuffs needed for a CMS access control. If you want to change the user groups and permission roles, you can simply modify the config under app/config/packages/raftalks/ravel/roles.php

The roles config file can be used to set the usergroups and what sort of actions that a usergroup can handle, if you want to add custom list of actions modify the array with your own list of actions, if you need to add more user groups or less, modify them in the config file.

After modifying, remember to run the command, php artisan ravel::sync_roles which will update the database with changes you have applied to config file. If you want more features, consider extending the ACL class of Ravel and add more methods to it and point the path to your custom ACL class by changing the aliases array key for 'Acl' under app/config/packages/raftalks/ravel/app.php

@raftalks raftalks closed this as completed Aug 5, 2013
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

2 participants