This repository has been archived by the owner. It is now read-only.
The sfGoogleLoginPlugin offers login via Google accounts using OpenID for Symfony projects.
JavaScript PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
modules/sfGoogleLogin
web/js
LICENSE
README
README.md
package.xml.tmpl

README.md

sfGoogleLoginPlugin

Usage

To display a login/logout link on any page, just load the component:

<?php include_component( 'sfGoogleLogin', 'link' ); ?>

The sfGoogleLogin/login action can be used als the default login action. When the user is logged in, the sfUser object will have set the GoogleAccount as an attribute called "sfGoogleLogin_account".

User Experience

  1. The user clicks the login link.
  2. A popup is displayed, showing the Google login page. This page displays the domain, which the user will be logged in to.
  3. The user enters his email and password and can choose if the login shall be saved or not.
  4. Now the user is logged in. The popup closes itself and the page reloads.

More Information

Contribute

Feel free to contribute code at github.