/sfGoogleLoginPlugin

The sfGoogleLoginPlugin offers login via Google accounts using OpenID for Symfony projects.

Primary LanguageJavaScriptMIT LicenseMIT

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.