google-authentication

Google ClientLogin authentication

强颜欢笑 提交于 2019-12-03 14:12:35
I try make authentication using ClientLogin URL url = new URL("https://www.google.com/accounts/ClientLogin"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestMethod("POST"); connection.setRequestProperty("Email", "testonly%2Ein%2E2011%40gmail%2Ecom"); connection.setRequestProperty("Passwd", "mypass"); connection.setRequestProperty("accountType", "HOSTED"); connection.setRequestProperty("service", "apps"); connection.connect(); But I get Error=BadAuthentication . How I should correct my code? You should set the proper

Permanent access token with YouTube api?

故事扮演 提交于 2019-12-03 13:38:46
I have gone through the google documentations for Oauth and AuthSub methods for authenticating and I've tried to google this without results. For Facebook, you can request an access token which is of length lifetime , meaning you won't have to be requesting a new token every few weeks. What about Google, and YouTube in specific, is there any authentication method which allows you to use that token permanently? In their documentation they state that they have long-life but no sort of additional detail, of exactly how long and whether or not you could actually get one which never expires.

com.google.android.gms.auth.GoogleAuthException: getToken(Unknown Source) exception

霸气de小男生 提交于 2019-12-03 10:28:10
In my Android application, I am trying to get google token to verify at my google app engine backend server. But I always get this exception : com.google.android.gms.auth.GoogleAuthException: getToken(Unknown Source) exception My code : private Account mAccount = AccountManager.get(this).getAccountsByType(GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE)[0]; private static final String SCOPE = "audience:server:client_id:" +Constants.WED_CLIENT_ID; String token = GoogleAuthUtil.getToken(LoginActivity.this, mAccount.name, SCOPE); I have tried every solution proposed in Stackoverflow. After several hours, I

How to Refresh Google AccessToken in Firebase? #AskFirebase

青春壹個敷衍的年華 提交于 2019-12-03 05:32:26
I am attempting to build a web app that will be integrated with and installed into Google Drive. The user will be able to create and share my app's files in their drive. I am trying to write it using Firebase so I can leverage many of the great new features there. However, I'm having trouble getting the auth to work consistently across these two platforms. This is a client-side only app (at least for now) so I can't use offline auth and refresh tokens. Before Firebase auth, I would use the Google Identity Toolkit with gapi . This generally works fine, although it uses a popup flow which isn't

Installed Application Redirect uri mismatch on live site which is working on localhost

纵饮孤独 提交于 2019-12-02 13:44:45
问题 I have developed an google analytics plugin , Getting URI mismatch error on authentication . It is working well on localhost , but when I installed it on a site, It displays this error. My redirect uri that is created on browser address bar during authentication and showing error uri mismatch https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=auto&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.readonly&response_type=code&redirect_uri=http%3A%2F%2Fapp

Using Google API GoogleJsonWebSignature.ValidateAsync(…) in server call

旧城冷巷雨未停 提交于 2019-12-02 13:17:46
I am trying to implement Google SSO in my C# web application. It seemed to be pretty straightforward. Based on this tutorial , Google does its magic in the web browser to get an Id_Token JWT. I pass the token is passed it to my web service for validation and use it to match it to a user in the application. Although I am not sure if my approach with the server-side Google API is correct yet, my big hangup is trying to figure out how to work with the async call in the Google API to see what I get back. My code is pretty simple using the Google.Apis.Auth namespace: public async Task

After once login with google authentication in my android app i can't sign out. every time it's automatically sign in

混江龙づ霸主 提交于 2019-12-02 08:56:39
问题 I have integrated Google authenticate login in my app but after once login if I log out my account still every time app automatically sign in the old user account. MainAcivity public class MainActivity extends AppCompatActivity implements View.OnClickListener { GoogleSignInClient mGoogleSignInClient; private FirebaseAuth mAuth; private int RC_SIGN_IN=1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);

After once login with google authentication in my android app i can't sign out. every time it's automatically sign in

人走茶凉 提交于 2019-12-02 06:35:20
I have integrated Google authenticate login in my app but after once login if I log out my account still every time app automatically sign in the old user account. MainAcivity public class MainActivity extends AppCompatActivity implements View.OnClickListener { GoogleSignInClient mGoogleSignInClient; private FirebaseAuth mAuth; private int RC_SIGN_IN=1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mAuth = FirebaseAuth.getInstance(); GoogleSignInOptions gso = new GoogleSignInOptions.Builder

Use Application Default Credentials on Google Compute Engine to access Sheets API

落花浮王杯 提交于 2019-12-02 04:07:15
Does the ADC (Application Default Credentials) workflow only support Google Cloud APIs (for example, supports for Google Cloud Storage API, but not the Google Sheet API)? I'm referring to google.auth's default method - not having to store any private keys with the code is a great win and the main benefit of making effective use of the ADC (Application Default Credentials) setup. The following code works if I set the GOOGLE_APPLICATION_CREDENTIALS environmental variable to the private key file, say key.json. This is inline with the default method as per step 1 of the google.auth package: 1. If

Coming url doesn't let me go further in cordova app after google authentication

旧巷老猫 提交于 2019-12-02 02:16:31
Hello I am using Cordova app using Visual Studio 2015 community and simply login in the app using google authentication it's pretty fine login is done by open it in new window but after login it gives me the three pop up messages and than don't do anything. The messages are (which are coming after login process and gives allow permission): 1) gap_init:2 2) gap:[null,"CoreAndroid","messageChannel","CoreAndroid237153815"] 3) gap:[null,"CoreAndroid","show","CoreAndroid237153816"] by pressing these messages as "OK" it's just showing me my first page in the same popup window from where I logged in