public
Description: Port of restful_authentication plugin for symfony
Homepage:
Clone URL: git://github.com/krasio/sfrestfulauthenticationplugin.git
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)