sfRestfulAuthenticationPlugin - 0.0.3

The sfRestfulAuthentication is a symfony plugin that provides simple (and restful) authentication features.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Dependencies Releases Changelog Contribute
Show source

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

    login_module:           sessions
    login_action:           new
  • Change the parent class in myUser.class.php

    class myUser extends sfRestfulAuthenticationUser
    {
    }

    N.B.: You must have a @homepage routing rule (used when a user sign out)