verify email on password accounts

67 views
Skip to first unread message

Stefan Lundgren

unread,
Nov 24, 2014, 8:04:25 AM11/24/14
to google-iden...@googlegroups.com

Is there a way to verify a users email if the user has a password account?


I kind of expect it to work as for password change and forgotten password that I send an url to the user and expect a response but that option is not available so is there any other way.

Regards Stefan

Derek Salama

unread,
Nov 24, 2014, 1:10:35 PM11/24/14
to google-iden...@googlegroups.com
Hi Stefan,

I don't think this is explained well online, I'll be adding instructions shortly. For now: 

When you want to send a verification email (probably right after sign up), you can get the Oob Confirmation code from the Oob API call. Note that you don't need to provide the reCAPTCHA challenge & response info here. This RPC must be signed by your service account in a similar manner to the way you would for an email change - these instructions are relatively complicated, so it might be worth looking at how we get the OAuth2 tokens in one of our client libraries.

Once you have the Oob code, you should embed it in a link that you send to your user. When they click on the link, you can include that Oob code in a call to setAccountInfo with the param "emailVerified" set to true.

Hope this helps. Please let us know if you have any more issues.

Derek Salama

unread,
Nov 24, 2014, 2:16:35 PM11/24/14
to google-iden...@googlegroups.com
One slight addendum:

You can always mark "emailVerified" as true using the setAccountInfo RPC if you choose to implement your own email verification.

If you use the Oob code, that is the only parameter required for the setAccountInfo. With the code, we can see that it was email verifiation.

Stefan Lundgren

unread,
Nov 29, 2014, 3:56:52 PM11/29/14
to google-iden...@googlegroups.com
Thank, I will give it a try
Reply all
Reply to author
Forward
0 new messages