public
Description: Port of restful_authentication plugin for symfony
Homepage:
Clone URL: git://github.com/krasio/sfrestfulauthenticationplugin.git
100644 51 lines (32 sloc) 1.353 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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)