Hi Raza,

In the authentication portion, instead of assuming the user has been
unauthenticated, you should query your user management system (ex:
Ldap, Active Directory, Data Base) and check the username and
password. To make the user go to the email by default you could set
the RelayState to 'http://mail.google.com/a/mymal.com' by default, the
PHP Example has the mailbox as default.

for the authentication, for example on the PHP sample, you must
implement the authentication on the login function that queries your
system:

function login($username, $password) {
  // Stage II: Update this method to call your authentication
mechanism.
  // Return username for successful authentication. Return null
  // for failed authentication.
  return 'demouser';
}

Regards,
Julian.

On Jan 30, 1:08 pm, SYED RAZA MEHDI KAZMI <[EMAIL PROTECTED]> wrote:
> Hey guys!
>
> I have one project in which i want to authenticate a user's google
> account. Using the Single Sign On (SSO) Feature for Google
> APPS, i tried to implement it using Zend Framework and separately
> writing my own PHP code, but couldnt do it. I want following tasks to
> be performed:
>
> 1. It should have a form containing Username and Password fields.
> 2. When user enters his username and password, it should authenticate
> that information.
> 3. Upon successful authentication, the user's mailbox must be
> displayed.
>
> The sample domain is ' mymail.com '. Upon
> successful login, the user is redirected to the inbox.  The sample id
> is : [EMAIL PROTECTED] (supposing it is a particular organization
> user's Google ID, in short paid gmail service).
>
> I have downloaded the sample SSO code from the site:
> <a 
> href="http://groups.google.com/group/google-apps-apis";>http://groups.google.com/group/google-apps-apis</a>
>
> but it only gives the static demo. In the <b>process_response.php</b>
> The authentication portion assumes that the user has been
> authenticated, and it redirects it to the main page. Here i want to
> perform authentication.
>
> Can anyone help me out in this regard? If possible, does anyone has
> some sample code that i can use in my PHP script? Kindly reply as soon
> as possible through this group and also send me the code to my email
> address.
>
> I shall be very thankful to you.
>
> REGARDS
> RAZA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to