Reputation: 1924
I write web site "mysite.com" with uses ASP.NET MVC 4
Authorization on site by google OAuth "[email protected]"
All work correct. In site database created account associated with google account.
I need login in this site from android device with "[email protected]" account (Account added in device)
I try
String token = GoogleAuthUtil.getToken(MainActivity.this, "[email protected]", "oauth2:" + Scopes.PLUS_LOGIN);
I don`t undertand how link together GoogleAuthUtil and "mysite.com" and "[email protected]"
Help please sample or links
Thanks.
Upvotes: 1
Views: 108
Reputation: 6451
You need to enable Google+ API in Google APIs Console. All instructions are already detailed in the Google+ Android API docs: https://developers.google.com/+/mobile/android/sign-in
Upvotes: 1