Delegate OpenID to Google (not Google Apps)

Can I use my personal website / blog to log in to sites that use openid and delegate my Google account?




Ok, I was looking for this question on SO, but no good answer. After spending some time, I figured out how to do it. I am going to answer it myself to share it.

+84
delegation openid google-oauth
Mar 29 '10 at 21:51
source share
3 answers

You can now delegate the OpenID of your Google account (rather than Google Apps) .

No, this does not use the OpenID demo provider using the App Engine. This is your real google account!

First you need to enable Google Profiles . Try viewing your profile and editing it, there should be an option to set your profile URL. You have two options: either use your Gmail account name (without the @ gmail.com part) as your profile ID, or a random number assigned to you. You decide which one to use. In any case, this id is your identifier for your profile below.

Now add the following HTML to the delegation page:

<link rel="openid2.provider" href="https://www.google.com/accounts/o8/ud?source=profiles" /> <link rel="openid2.local_id" href="https://profiles.google.com/[YOUR PROFILE ID]" /> 

And thatโ€™s all. Now try logging in with your custom URL!

+97
Mar 30 '10 at 12:50
source share

Despite the accepted answer, you should not join Google+ to use Google as a delegate, as you already have a local identifier that is part of your message preceding @ .

Given your existing Google account some-name@gmail.com , you just need the following two links in your head delegate section:

 <link rel="openid2.provider" href="https://www.google.com/accounts/o8/ud"> <link rel="openid2.local_id" href="https://profiles.google.com/some-name"> 

I just did this and confirmed that it works without connecting to Google +.

+8
03 Oct '13 at 18:08
source share

OpenID 2.0 for Google Accounts left https://support.google.com/accounts/answer/6206245

+4
May 14 '15 at 2:43
source share



All Articles