google-signin

AWS Cognito with Google Signin fails after 1 hour

只谈情不闲聊 提交于 2019-12-12 04:02:56
问题 I am facing an issue with Google signin that makes me question that Cognito can work at all in this configuration. Basically, Google token have a 1 hour lifespan. This is intended to give you access to the Google API for one hour and then you should renew the token. The issue is that Cognito uses this token with the same lifespan. So it means that after one hour Cognito Sync stops working (and I have not yet found a way to silently refresh the token or even check it is expired). What bothers

able to open the app in Emulator, but unable to start the activity for Google Signin

那年仲夏 提交于 2019-12-12 03:53:53
问题 MainActivity.java @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); initializeControls(); loginWithFB(); toolbar = (Toolbar) findViewById(R.id.toolbar); viewPager = (ViewPager) findViewById(R.id.viewpager); setupViewPager(viewPager); tabLayout = (TabLayout) findViewById(R.id.tabs); tabLayout.setupWithViewPager(viewPager); View inflatedView = getLayoutInflater().inflate(R.layout.fragment_login_social, null

Google Sign In Exception Error swift

烂漫一生 提交于 2019-12-12 03:52:22
问题 I'm not getting the point where I'm making mistake while using Google SDK Login on custom button. The console is giving: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'You must specify |clientID| for |GIDSignIn|' *** First throw call stack:" Even I have given Client ID too see images below: I appreciate your responses. 回答1: Write Client ID in applicationdidfinish method of AppDelegate class or in viewDidLoad before the google signin delegating self. 来源:

How to create OAuthClient Id in Goole API console for multiple projects

孤街浪徒 提交于 2019-12-12 03:21:52
问题 I am working on an Android application, which support multiple countries like Germany, Switzerland, UK etc. For each project I have created a project in Google API console. I have generated OAuthClient Id for my release and debug signing keys in one project. When I am trying to generate OAuthClient Id in another project i.e. UK, I am getting Duplicate Fingerprint error. Is there any way to generate OAuthClient Id for same android application in multiple projects? 回答1: NO. I think its not

How to revoke google account access within my android app?

巧了我就是萌 提交于 2019-12-12 02:43:00
问题 I am new to android and would like to know how to revoke access of someone who has signed-in to my app using GoogleSignInApi. I want my app to ask for the user's google account id when user revokes the access within the app. Currently my app automatically signs-in once the user clicks on SignIn button, even after the user has clicked revoke access button. I am broadcasting an intent when the user clicks on revoke or sign out button of my app. Below is the code for my MainActivity . public

Google signin not working on release version of android

瘦欲@ 提交于 2019-12-12 01:54:18
问题 I am getting problem for my current app. My OAuth2.0 the SHA1 is correct and generated from keystore file of release version. My problem is I am receiving resultCode =0 everytime on onActivityResult. I print out value of intent and got below: googleSignInStatus=Status{statusCode=INTERNAL_ERROR, resolution=null} But, if I run it on debug mode login working perfectly and for this case value of intent is: googleSignInAccount=com.google.android.gms.auth.api.signin.GoogleSignInAccount@31976389] Do

Call back when user presses GIDSignInButton

流过昼夜 提交于 2019-12-11 17:42:30
问题 I am adding Google sign-in to my app. I have added GIDSignInButton in storyboard. When user clicks on that button user is sent to webpage where he can login. I wanted to do some checks before it happens. Is there any way that I can get a call back method before user is directed to webpage? 回答1: You can create any button with same look and hook it to this action @IBOutlet func btnClicked(_ sender:UIbutton) { // do what you want use return if checks are failed GIDSignIn.sharedInstance().signIn(

Can google user_id be changed?

[亡魂溺海] 提交于 2019-12-11 17:07:30
问题 We have an implementation of Google sign-in https://developers.google.com/identity/sign-in/web/backend-auth. According to the documentation https://developers.google.com/identity/protocols/OpenIDConnect#obtainuserinfo and the best practice (from the first link), google user_id ( sub ) is a unique identifier, and it can't be changed. sub > An identifier for the user, unique among all Google accounts and never reused. A Google account can have multiple emails at different points in time, but

actions_intent_SIGN_IN doesn't have profile data under conv->user->profile

北城余情 提交于 2019-12-11 16:48:28
问题 I am facing this issue in integrating Google SignIn flow. The problem I am facing is that after the user successfully sign in program control trigger actions_intent_SIGN_IN intent in the code. From where I can get user details but I am noticing that sometimes conv->user->profile doesn't have the profile information while other time it has. Also When it doesn't have profile information, next time when I invoke some other intent it gets the user token. This is the Payload I am getting on SignIn

azure google sign in showing blank white page

扶醉桌前 提交于 2019-12-11 16:48:17
问题 Here is my code for google sign in with azure. I have set up everything needed to use the google sign in including my authorized callback urls https://myAzureSite.azurewebsites.net/.auth/login/google/callback and authorized javascript origins https://myAzureSite.azurewebsites.net I have also followed the instructions and enabled the social api and put the client id and client secret into the azure authentication settings for google. The content security policy meta tag is also there in my