Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Howto use Google Accounts as login

I'm thinking about using Google Accounts as a user verification for a service I'm developing. This will be a client and server. I'm hoping to be able to use the already signed-in Google Account on the Android phone and use that as a verification on my server.

Where can I find information about this?

Is it possible to use the already signed-in account on the phone or do I have to re-sign-in in my application?

like image 242
Espen Avatar asked Dec 01 '10 18:12

Espen


People also ask

How do I log in to my Google account?

If you have a Google account, you can log in with that. Steps. Go to Google. Go to google.com or search for Google in your browser's search box. Click on Sign in. The blue Sign in button is on the upper-right corner. Enter your email address and click on Next. You can also use your phone number to sign in.

What can I do with a Google account?

With a Google Account, you have access to free Google products like Drive, Docs, Calendar, and more. To sign in to your Google Account (or any Google product): Go to the sign in page of the product (for Google Accounts it is myaccount.google.com ).

How can I use my Google account to sign into other apps?

Use your Google Account to sign in to other apps or services You can use your Google Account to sign in to third-party apps and services. You won't have to remember individual usernames and passwords for each account. Third-party apps and services are created by companies or developers that aren’t Google.

How do I sign out of my Google account?

On your device, go to a Google page, like www.google.com. On the top right, select your profile image or initial. On the menu, choose Sign out or Sign out of all accounts. On your device, go to a browser where you're signed in, like Chrome.


1 Answers

There's a class called AccountManager which acts like a registry for the users online account. I think this is what you are looking for.

There's also something called Federated Login for Google, which allows users to login using their Google Account. Its more like OpenID

like image 151
Raunak Avatar answered Sep 17 '22 14:09

Raunak