taOpenIDsfGuardPlugin - 0.1.0

The `taOpenIDsfGuardPlugin` is a symfony plugin that adds openID support on sfGuardPlugin.

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

taOpenIDsfGuard plugin

The taOpenIDsfGuardPlugin is a symfony plugin that adds openID support on sfGuardPlugin. It uses Zend Frameworks OpenID library.

It gives you the model and the module which allow users to manage their OpenIDs. It support both versions OpenID 1.0 and 2.0.

Installation

  • If not installed, install first sfGuardPlugin
  • Download and install Zend Framework (I installed mine on lib/zf)

    • Add location of Zend Framework and autoloader to settings.yml

      zend_lib_dir:   %SF_LIB_DIR%/zf/library/
      

      autoloading_functions:

    • Because Zend Framework wants start session to work properly Update factories.yml session_autostart value to false

      all:
      storage:
          class: sfSessionStorage
          param:
          auto_start: false
      
    • Add following row to apps config.php

      Zend_Session::start();
      
  • Build you model

      symfony propel-build-all
    
  • Enable taOpenID module for your application

      all:
        .settings:
          enabled_modules:      [taOpenID](default,)
    
    • Add routes to routing.yml

      openid_signin:
        url: /taOpenID/Signin/*
        param: {module: taOpenID, action: SignIn}
      
      openid_finishauth:
        url: /taOpenID/Finish
        param: {module: taOpenID, action: Finish}
      
      openid_default:
        url: /taOpenID
        param: {module: sfGuardAuth, action: signin}
      
  • Clear you cache

      symfony cc
    
  • Include OpenID signing form to your login page

            <?php include_partial('taOpenID/signinForm') ?>
    

Manage your openIDs

To manage your openIDs:

  • Enable the module taOpenID in settings.yml

    all:
      .settings:
        enabled_modules: [taOpenID](...,)
    
  • Go to taOpenID's manage action

        http://www.example.com/taOpenID/manage
    

TODO

  • Support for registration with openID

Changelog

1.0.0

* Tero.Alen: Initial release