google-oauth2

Google app script web app, how to create a login button?

只谈情不闲聊 提交于 2019-12-06 11:25:53
问题 I have create script backed by a Google Spreadsheet in Google Drive and published it as a web app, setting "Execute the app as: me" and "Who has access to the app: Anyone, even anonymous". The main page serves html content from the spreadsheet. The basic functionalities are: a "random internet user" is able to see some informations, while an user logged with his Google Account is able to submit information as well. The issues is - if I set the permission to "anyone" people are first

Multiple client ids spring security config

倾然丶 夕夏残阳落幕 提交于 2019-12-06 07:39:08
问题 I have successfully implemented Google Sign-In on iOS with following application.yml: security: oauth2: resource: user-info-uri: https://www.googleapis.com/plus/v1/people/me prefer-token-info: true client: client-id: xxxxx.apps.googleusercontent.com access-token-uri: https://www.googleapis.com/oauth2/v3/tokeninfo client-authentication-scheme: form scope: email,profile Now I need to add configuration for Android client. Obviously I cannot do this: security: oauth2: resource: user-info-uri:

How can I redirect users back into my app after google oauth without using a webview?

谁说我不能喝 提交于 2019-12-06 05:13:50
Google's decision to disallow oauth via webview is causing me huge amounts of trouble. It's been a long and difficult process migrating to an alternative (I'm using the suggested AppAuth library at the moment) and I'm getting user complaints about not being able to link accounts without also adding them to chrome/their device (which as far as I can tell is now impossible without somehow forcing a private browsing session). My latest problem involves google oauth to sign into another service. Here's the scenario: A user wants to link a 3rd party service to my application. Their account on the

Google one tap sign up always returns noCredentialsAvailable

久未见 提交于 2019-12-06 01:50:25
问题 I have set up a bare bones test for the new google one tap sign in / sign up. <!DOCTYPE html> <html lang="en"> <head></head> <body> <script src="https://smartlock.google.com/client"></script> <script> window.onGoogleYoloLoad = (googleyolo) => { googleyolo.hint({ supportedAuthMethods: [ "https://accounts.google.com" ], supportedIdTokenProviders: [{ uri: "https://accounts.google.com", clientId: "xxxxx-xxxxx.googleusercontent.com" }], context: "signUp" }).then((credential) => { console.log

Behaviour of mobile app browsers with Google sessions and Account Chooser

元气小坏坏 提交于 2019-12-05 13:25:51
问题 Problem : Trying to create SSO between mobile app. and browser. What we have: We have an ionic mobile app. with "Login with Google" using OAuth 2.0 authentication. We have multiple inhouse apps that works on OAuth2 and SAML hence, we have SSO enabled for GSuite so that all apps work seamlessly with one login and password. Now when we hit the "Login with Google" button, Opens to SSO login page in a browser app. We have SSO enabled hence we have set login_hint, which helps us in directly takes

'JKS not found' when trying GoogleNetHTTPTransport

╄→гoц情女王★ 提交于 2019-12-05 06:30:23
I've been having some troubles with Google Authorization and I've never worked with any "Google credentials-involved" process before. My problem takes place after I've created the credential reader (which I assume means that I could access my Google credential's JSON file correctly), just in the line where I instantiate a new Trusted Transport from the GoogleNetHTTPTransport . There, the Exception error throws: W/System.err: java.security.KeyStoreException: JKS not found at java.security.KeyStore.getInstance(KeyStore.java:649) at com.google.api.client.util.SecurityUtils.getJavaKeyStore

Make google auth request gapi.auth without a popup

寵の児 提交于 2019-12-05 06:19:59
Need to make auth request in js but the browser does not support popups. Is there any way to redirect to a new url or show the request in the in html5 page of the application 3pic By using this code check if user authorized your app gapi.auth.authorize({client_id: clientId, scope: scopes, immediate: true}, callbackAuthResult); Note: immediate:true if you set immediate true then it wont show popup. You see? You don't open the popup, and manage the stuff in the callback. This callback is usually used for post-processes. Here we use it for authenticating. in callbackAuthResult :

How to set GOOGLE_APPLICATION_CREDENTIALS without using a path

梦想的初衷 提交于 2019-12-05 04:49:42
问题 I'm developing a CMS module that needs to use Google OAUTH 2 for server to server applications. According to the official manual one needs to set an environment variable with the path to .json key like so: putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); And here is the tricky part. If I'd use it in a stand-alone web application, then there wouldn't be any problem, but since I'm working on a CMS module, storing that file on a drive or creating any kind of hooks

Google login get access token with new GoogleSignInOptions

大憨熊 提交于 2019-12-04 18:58:59
问题 My android app currently uses the GoogleAuthUtil to signin users and fetch an access_token which is passed to the backend (code snippets below which show creating the GoogleApiClient and using GoogleAuthUtil to get the token). mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API) .addScope(new Scope("profile")) .build(); ... ... String accessToken = GoogleAuthUtil.getToken(GoogleLoginActivity.this, Plus

How do I add “authorized redirect URIs” to Google OAuth2 using an API?

时间秒杀一切 提交于 2019-12-04 18:53:12
问题 I'm trying out Heroku's new "Heroku Review Apps" feature. It creates a new Heroku App whenever you create a new pull request in github for a given project. I'm trying to get Google OAuth2 support working with them, but each created app has a new URL. e.g. https://my-app-pr-124.herokuapp.com The problem is that when a user tries to sign in on this new app, Google won't allow redirecting the user back to the app, since Google doesn't trust that URL yet. I can include my own Google API key with