Regardin issue number 1, I have been working on this for the past few days.
Take a look here: How do you delegate your OpenId to Google Apps .
Google doesn't seem to allow delegation, so you can't just put meta information in the title of your document. I believe that you need to create a file called yourdomain.com/.well-known/host-meta that points to the XRDS file on the Google server. He better explained the discovery API page . Sorry for all the jargon, but I don’t know how to explain it otherwise.
To test Google’s OpenID federation, follow these steps: http://www.puffypoodles.com/
The delegation problem is better in the Google group for the OpenID federated login API .
As for question number 2, the federated login API provides OAuth kindness, so you can use user information and use auth tokens, etc. Check the federated login API.
Hope this helps.
Mike meyer
source share