sfGuardHttpAuthPlugin - 0.0.2

Provide http authentication functionnality to sfGuard

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 Releases Changelog Contribute
Show source | Show as Markdown

sfGuardHttpAuth Plugin

Overview

This plugin Provide http authentication functionnality to sfGuard

WARNING: it is not even tested once

Installation

To install sfGuardHttpAuthPlugin:

./symfony plugin-install symfony/sfGuardHttpAuthPlugin

To install from svn:

svn co http://svn.symfony-project.com/plugins/sfGuardHttpAuthPlugin plugins/sfGuardHttpAuthPlugin

Clear your cache

./symfony cc

Usage

Currently it implements only one function:

$hasSignedIn    = sfGuardHttpAuth::signinIfPossible();

If it return true, then the user has been signed in by this call, return false otherwise.

This call is typically followed by a test to determine if the user is authenticated or not. Something like that.

$this->forward404Unless($this->getUser()->isAuthenticated());

License

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.