On Mon, Jun 11, 2012 at 12:03 PM, Goat666 <[email protected]> wrote:
> Hi Nicolay,
>
> Thank you so much for your quick response. I think I was not very clear in
> my explanation. Just to clarify, earlier I was having the user input their
> email address and password manually into a form and then verify it with a
> link sent to their email address.
You certainly don't need a password to verify an email address. Are you
trying to have them register in your app?
>
> Isn't it better to use google auth from a phone through the APIs rather than
> going the OpenID connect route? My only question is that I don't need to
> work with any of their APIs. Hence, what is the token type to use? Thanks
> again for your help. Apologize if I missed anything in your response.
>
>
If you only want to get the email address, you don't need a token at all.
Nor the associated permissions. Just something like this and the
GET_ACCOUNTS permission in your manifest:
Account[] accounts = accountManager.getAccountsByType("com.google");
if (accounts.length > 0) {
String email= accounts[0].name;
}
If you want to verify that this is an actual address that can receive mail,
send a mail with a link/token. If you want to authenticate to some
service that accepts Google accounts, get the appropriate token.
What are you trying to do again?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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/android-developers?hl=en