0.0
No commit activity in last 3 years
No release in over 3 years
Smithy CMS ships with no authentication. This implements a basic has_secure_password in a Smithy::User model
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

SmithyCMS Auth¶ ↑

Smithy CMS ships with no authentication but is able to utilize other authentication/authorization systems. This implements a basic has_secure_password in a Smithy::User model

To roll your own or use an existing auth scheme, you need #smithy_current_user, #smithy_login_path & #smithy_logout_path helper methods (see ‘authentication_helpers.rb`). You also need to provide the appropriate routes (see `routes.rb`).

Lastly, your User model (whatever it may be) needs to expose a #smithy_admin? method. We leave the implementation details up to you.