google-plus-signin

How can I use ASP.NET MVC Owin AccessToken in Google.Apis call?

流过昼夜 提交于 2019-12-07 05:09:40
问题 I'm trying to use the AccessToken provided by Owin in Google.Apis requests but I'm receiveing the exception System.InvalidOperationException (Additional information: The access token has expired but we can't refresh it). My configuration of Google Authentication is OK and I can successfully login into my application with it. I store the context.AccessToken as a Claim in the authentication callback (OnAuthenticated "event" of GoogleOAuth2AuthenticationProvider). My Startup.Auth.cs

Google SignIn: Unable to disconnect iOS app

我只是一个虾纸丫 提交于 2019-12-07 04:16:54
问题 I have implemented google SignIn in my iOS app and can login to google account for the first time. But when I logout and try to log back in, I get Account Permission screen as shown below with last user instead of SignIn screen. Below is the code I've used. var signIn = GIDSignIn.sharedInstance() signIn.delegate = self signIn.uiDelegate = self Below is code to sign out & disconnect GIDSignIn.sharedInstance().signOut() GIDSignIn.sharedInstance().disconnect() After disconnecting, I again try to

12501 error: Ionic what keystore is the app building with

雨燕双飞 提交于 2019-12-06 06:16:42
I am using Ionic 2 with GooglePlus Authentication . Everything works perfectly for iOS . For Android I build my app as follows: ionic build android For the Android build, I need a SHA1 keystore for Google Authentication. I have a Macintosh HD/Users/myname/.android/debug.keystore , so according to these instructions, I generate a keystore using (default password ' android '): keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore The output looks correct. I use this SHA1 to for my Android Credentials as per the above instructions: But when I try login, I get:

Google SignIn: Unable to disconnect iOS app

大憨熊 提交于 2019-12-05 09:14:52
I have implemented google SignIn in my iOS app and can login to google account for the first time. But when I logout and try to log back in, I get Account Permission screen as shown below with last user instead of SignIn screen. Below is the code I've used. var signIn = GIDSignIn.sharedInstance() signIn.delegate = self signIn.uiDelegate = self Below is code to sign out & disconnect GIDSignIn.sharedInstance().signOut() GIDSignIn.sharedInstance().disconnect() After disconnecting, I again try to SignIn using below code GIDSignIn.sharedInstance().signIn() How can I display login screen after

How can I use ASP.NET MVC Owin AccessToken in Google.Apis call?

北慕城南 提交于 2019-12-05 08:33:38
I'm trying to use the AccessToken provided by Owin in Google.Apis requests but I'm receiveing the exception System.InvalidOperationException (Additional information: The access token has expired but we can't refresh it). My configuration of Google Authentication is OK and I can successfully login into my application with it. I store the context.AccessToken as a Claim in the authentication callback (OnAuthenticated "event" of GoogleOAuth2AuthenticationProvider). My Startup.Auth.cs configuration (app.UseGoogleAuthentication(ConfigureGooglePlus())) private GoogleOAuth2AuthenticationOptions

Google sign in not working android?

 ̄綄美尐妖づ 提交于 2019-12-05 06:05:38
So an issue my project has encountered is that the sign in through google does not work consistently. Ie, it works for my friend and not me from my computer, even though it worked for me yesterday before wiping my phone (phone got corrupted). Our login code is the standard for google sign in, and the problem is that the result keeps returning false I think. the code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.welcome_screen); findViewById(R.id.sign_in_button).setOnClickListener(this); GoogleSignInOptions gso = new

Plus.PeopleApi.getCurrentPerson deprecated in Play services 8.4. How to get user's first name, last name and gender using GoogleSignInApi?

荒凉一梦 提交于 2019-12-04 22:37:04
问题 With Play services 8.4, the method getCurrentPerson is deprecated and I was using the PeopleApi to get user's first name, last name and gender. Can anyone tell me how to get the signed in user's info using another method? 回答1: Google Sign-In API can already provide you with first / last / display name, email and profile picture url. If you need other profile information like gender, use it in conjunction with new People API // Add dependencies compile 'com.google.api-client:google-api-client

Plus.PeopleApi.getCurrentPerson deprecated in Play services 8.4. How to get user's first name, last name and gender using GoogleSignInApi?

蓝咒 提交于 2019-12-03 15:02:43
With Play services 8.4, the method getCurrentPerson is deprecated and I was using the PeopleApi to get user's first name, last name and gender. Can anyone tell me how to get the signed in user's info using another method? Google Sign-In API can already provide you with first / last / display name, email and profile picture url. If you need other profile information like gender, use it in conjunction with new People API // Add dependencies compile 'com.google.api-client:google-api-client:1.22.0' compile 'com.google.api-client:google-api-client-android:1.22.0' compile 'com.google.apis:google-api

Sign out from google and facebook in android application

馋奶兔 提交于 2019-12-02 19:37:51
I have integrated google and facebook sign up using their respective methods. But after successful signing, I want to open different activity and similarly user can go to various different activities. I have used action bar where I am giving an option to sign out from either of the account that the user has logged in. How could I sign out the user when I am in different activity then the main activity. I am getting an exception and I am not able to pass apiclient reference (for google) and session reference (for facebook) to another activity. Please help. Thanks in advance. sommesh Log out

Cannot get private birthday from Google Plus account although explicit request

冷暖自知 提交于 2019-12-01 05:43:22
I am trying to get the user's information, including gender and age, from its Google Plus account. Since these fields may be private, I thought that requesting them explicitly would solve the problem. However, although the sign in dialog states explicitly that the app requests to View your complete date of birth , I fail to get the birthday. These are my scopes (tried many variations): GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) //.requestScopes(new Scope(Scopes.PROFILE)) //.requestScopes(new Scope(Scopes.PLUS_LOGIN)) .requestScopes(new Scope(