Showing posts with label Login with Yahoo Account. Show all posts
Showing posts with label Login with Yahoo Account. Show all posts

Thursday, September 27, 2012

Website Login with Google Account, Yahoo Account

Make your registration process easily with Google Account OAuth integration along with yahoo.
Website registration and Login forms have important aspect of our development process. Currently visitors were not interested to fill large forms in any website. In this case visitors are not willing to join by signup on our website. In this aspect, technology will a solution. that is open social login from other major services. By this way, we can be use Login from google, yahoo, facebook, twitter.

First, Let us create a open login for our website login or registration form with Google Account and Yahoo Mail. upcoming days we will see other services. Now we can create website Login with OpenID OAuth Login with Google Accounts and Yahoo Accounts.

let us create How to make people login into your website with their Google account and Yahoo
Google and Yahoo provides Federated Login for Account Users with OAuth.

YAHOO OpenID Identify URL has been changed:

Step: 1
Download LightOpenID Class from

Step: 2: Write a Following Code and design a Form to Handle Login

<?php session_start();
# Logging in with Google accounts requires setting special identity, so this example shows how to do it.
require 'require/openid.php';

try {
    # Change 'localhost' to your domain name.
    $openid = new LightOpenID('');
  $openid->required = array(

    if(!$openid->mode) {
        $openid->identity = '';
        header('Location: ' . $openid->authUrl());
  $openid->identity ='';

    } elseif($openid->mode == 'cancel') {
        echo 'User has canceled authentication!';
    } else {
   $_SESSION['name']=$external_login['namePerson/first']." ".$external_login['namePerson/last'];
} catch(ErrorException $e) {
    echo $e->getMessage();

Download This Script    Live Demo    Download Script