krasio / sfrestfulauthenticationplugin
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
c7b454a
commit c7b454a584e316ec891ff1c901e7332eafac27e2
tree 7505310bde507d6d5bf0157b3c3737820f6b8380
parent caa8aaf4cd139c9015508f8aed4fe649406fdab0
tree 7505310bde507d6d5bf0157b3c3737820f6b8380
parent caa8aaf4cd139c9015508f8aed4fe649406fdab0
README
sfRestfulAuthentication plugin
==============
The `sfRestfulAuthentication` is a symfony plugin that provides simple (and restful) authentication
features. As it name shows it's based on technoweenie's restful_authentication plugin
(git://github.com/technoweenie/restful-authentication.git)
It gives you the model (sfRAUser) and the modules
(users and sessions) to register and authenticate users in your symfony application.
Installation
------------
* Install the plugin
$ git clone git://github.com/krasio/sfrestfulauthenticationplugin.git plugins/sfRestfulAuthenticationPlugin
* Rebuild your model and create DB tables
$ symfony propel:build-all
* Enable users and sessions modules in your `settings.yml`
[php]
all:
.settings:
enabled_modules: [default, users, sessions]
* Clear you cache
$ symfony cc
Secure your application
-----------------------
To secure a symfony application:
* Change the default login module in `settings.yml`
[yml]
login_module: sessions
login_action: new
* Change the parent class in `myUser.class.php`
[php]
class myUser extends sfRestfulAuthenticationUser
{
}
N.B.: You must have a `@homepage` routing rule (used when a user sign out)

