google-oauth2

Google Chrome 62.0.3202.94 gapi.auth2.getAuthInstance().signIn popup_closed_by_user

一笑奈何 提交于 2020-02-02 14:30:31
问题 Try sample from documentation https://developers.google.com/identity/protocols/OAuth2UserAgent#example We could select an account from popup dialog, but SignIn don't autorize in Google Chrome version 62.0.3202.94 In my example bilding by this documentation I got the error message with code "popup_closed_by_user" In Google Chrome version 62.0.3202.94 method ` gapi.auth2.getAuthInstance().signIn(options).then( function(resp) { var auth_code = resp.code; }, function(resp) { var auth_code = resp

Google SAML app_not_configured_for_user / equivalent of prompt=select_account SAML

≯℡__Kan透↙ 提交于 2020-02-02 11:43:14
问题 I'm using Gsuite as an Saml IDP to authentify users of my organisation on internal apps. Everything is working fine, except for one point: when one of my users if logged in with his/her personal account only , Google will fail with: 403 Error: app_not_configured_for_user This makes sense as the app is intended to be used by internal users only, but I would like to be able to force Google saml authentication to display the account selector even if the user is already logged in to one account

Spring and middleware conflict?

半世苍凉 提交于 2020-01-29 09:48:28
问题 I'm trying to add oauth2 with Google, following these instructions. I'm receiving the following error message starting the server: Exiting You've tried to invoke Spring when it's already loaded (i.e. the Spring constant is defined). This is probably because you generated binstubs with Spring 1.0, and you now have a Spring version > 1.0 on your system. To solve this, upgrade your bundle to the latest Spring version and then run `bundle exec spring binstub --all` to regenerate your binstubs.

Vue-router with google api

假装没事ソ 提交于 2020-01-25 21:53:38
问题 I have a site on Vue with vue-router navigation which needs to work with google drive. I've set up the app, tokens uri in the google developer's console and it works fine on its own: https://accounts.google.com/o/oauth2/v2/auth?response_type=token&client_id=668711006022-7igan4in4ob7ngtsmqjh8ld7j8hs5t16.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Ftwine.teivaz.com/auth&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive But when it came to integrating to vue-router navigation I faced

How to revoke access token from Google Assistant?

落花浮王杯 提交于 2020-01-25 08:27:46
问题 I'm using oauth implicit flow to authorize google assistant user into the system. The login flow goes like this: If user is logging in for the first time, the assistant redirect it to my service where user provides its credentials and logs in. Upon successful login, my service generates a JWT token and sends it back to the google oauth endpoint. Then user returns to the Google assistant with a message: "Your account has been linked to Google". Now, the big problem is, How can I logout the

Forcing a user to choose an account via Google OAuth2

烈酒焚心 提交于 2020-01-21 04:10:27
问题 I have the following workflow in my application: user logs into my custom app user clicks a button to link their YouTube account application makes a server side request using the code listing below user is redirected to the google auth url At this point, one of two things happens: [I never want this behaviour] - If the user is logged into exactly one Google account (i.e. gmail, Google Apps for Domains, etc...) the user is never asked to choose which account to link. It just assumes they want

Difference between `GoogleUser.getId()` (oauth) vs `app.getUser().userId` (actions-on-google)

有些话、适合烂在心里 提交于 2020-01-17 08:43:30
问题 The id I get from app.getUser() from the actions-on-google-nodejs app looks entirely different from the id I get from Oauth. app.getUser() in Google Assistant { userId: 'KMdEs***szG-ZRQl***cU', user_id: 'KMdEs***szG-ZRQl***cU', userName: { [...] The same id is returned with and without the app.SupportedPermissions.NAME permission. googleUser.getBasicProfile().getId() in Google OAuth 11348***63489 Is there any way to match these users up? It's the same Google Project in the developer console,

What should be authentication strategy between client and server when only social providers login authentication is used?

╄→尐↘猪︶ㄣ 提交于 2020-01-16 19:37:11
问题 Given the following conditions: A website only uses social providers in order to authenticate users (Google/Facebook). There's no native authentication. Only some sections (e.g. product reviews) are restricted. The website communicates with the server (same domain). What would be the best authentication strategy? - Only use social providers In this case: We need to research the refresh/revoke token mechanism per each provider and implement it. - Use social providers in order to verify the

How to forget already given Oauth and ask for it again?

一笑奈何 提交于 2020-01-16 09:16:31
问题 In the official sample C# code for YouTube OAuth login, adding a Scope once after the user already given access to the application does not seem to work. (In this case, the user was myself.) I went to the third-party access page of my Google account and manually removed the application. But when I ran the app again, it did not show the OAuth page again, but simply passed the code and failed at the actual API call with "Token has been revoked.". I did not know how to remove the existing

OAuth2 support through library returns The state token is invalid or has expired. Please try again

孤街浪徒 提交于 2020-01-15 15:27:04
问题 I have spreadsheets that need to be converted to PDF by various users in my organisation. In order to do that I am trying to use OAuth2 (https://github.com/googlesamples/apps-script-oauth2). When I am using it in a main spreadsheet embedded script it works. However I am trying to move the OAuth2 code to a separate library as there will be many spreadsheets that will need the same functionality. When I am using this library I am getting the message "The state token is invalid or has expired.