verifiedEmail verus email

30 views
Skip to first unread message

Mike Mansell

unread,
Sep 10, 2011, 2:46:49 PM9/10/11
to google-iden...@googlegroups.com
So, I'm unsure of what causes the verifyAssertion REST API to return a verifiedEmail as opposed to an email. I've tried three different test accounts. All of them are registered Google accounts. However, only one of the them is a true GMail account (the others are accounts that I provided a non-gmail email address. However, I did click on the verification emails that Google sent, so they are 'verified'). Only the GMail account returns a verifiedEmail field in the JSON response. The others return an email field.

I can guess that verifiedEmail means that it's a GMail account, but since I verified the other emails, that doesn't seem totally logical.

If my guess is correct, then can I also use the presence of the 'email' to indicate that this is a verified google account, just not a GMail account?

Any insight would be appreciated. 

Jin Liu

unread,
Sep 11, 2011, 11:02:14 AM9/11/11
to google-iden...@googlegroups.com
What you observed is the expected behavior of GITkit. 'verifiedEmail'
in the verifyAssertion API response means the email service provider
is the same as the identity provider.

When the asserted email address is on a domain that the identity
provider does NOT control, relying parties will have to handle some
very tricky cases. Please refer to Google's RP Best Practices at
https://sites.google.com/site/oauthgoog/UXFedLogin/loginlogic for more
information.

Feel free to ask if you have any further questions.

Jin

Reply all
Reply to author
Forward
0 new messages