google-authentication

Net::Google::AuthSub login failed with new Google Drive version

倾然丶 夕夏残阳落幕 提交于 2019-11-28 22:02:35
This code in Perl was working for years and now my Spreadsheets logins failed, when I logged into my account I noticed switch to a new Drive version. Probably some authentication methods deprecated? my $auth = Net::Google::AuthSub->new; my $response = $auth->login('LOGIN@gmail.com', 'PASS'); if ($response->is_success) { print "Hurrah! Logged in\n"; } else { die "Login failed: ".$response->error."\n"; } The result is: Login failed: And the code: use Net::Google::Spreadsheets; my $service = Net::Google::Spreadsheets->new( username => 'LOGIN@gmail.com', password => 'PASS' ); The result is: Net:

Subdomain in Google Console Redirect URIs

假如想象 提交于 2019-11-28 21:32:02
I have an web application that uses google api (google drive). The application is used by many clients and every client has an subdomain to access the system. So the domain is appdomain.com And for users I have foo.appdomain.com , bar.appdomain.com , etc.appdomain.com . But in google console redirect URI I have to manually put the redirect urls, is there any way I can use wildcards to redirect to make google accept any of subdomains like: *.appdomain.com ? With this I can make the google authorization calls with the user subdomain in redirect_uri: https://accounts.google.com/o/oauth2/auth

Google JWT Authentication with AspNet Core 2.0

家住魔仙堡 提交于 2019-11-28 10:31:09
I am trying to integrate google authentication in my ASP.NET Core 2.0 web api and I cannot figure out how to get it to work. I have this code in my Startup.cs ConfigureServices : services.AddIdentity<ApplicationUser, IdentityRole>() .AddDefaultTokenProviders(); services.AddAuthentication() .AddGoogle(googleOptions => { googleOptions.ClientId = Configuration["Authentication:Google:ClientId"]; googleOptions.ClientSecret = Configuration["Authentication:Google:ClientSecret"]; }); And this in Configure(IApplicationBuilder app, IHostingEnvironment env) : app.UseAuthentication(); When I navigate to

Google sign-in Android with Firebase - statusCode DEVELOPER_ERROR

♀尐吖头ヾ 提交于 2019-11-28 09:03:31
I try to implement Google login in my Firebase connected Android app. When I run the app and press Google Sign In button - nothing happen. And I receive this error in onActivityResult: Status{statusCode=DEVELOPER_ERROR, resolution=null} . My code looks like this: protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == REQUEST_CODE_GOOGLE_LOGIN) { GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data); if (result.isSuccess()){ GoogleSignInAccount account = result.getSignInAccount(); String emailAddres = account.getEmail();

gapi.auth2.ExternallyVisibleError: Invalid cookiePolicy

旧巷老猫 提交于 2019-11-28 08:54:44
I'm trying to add a Google Sign In Authentication system to my app, but I keep getting a strange error that I haven't seen anyone get. I'm using EXACTLY the google example code . I thought it could be some mistake when loading the api, so I checked the async loading and everything seems to be loading properly, but I keep getting this error in the console: gapi.auth2.ExternallyVisibleError: Invalid cookiePolicy I searched everywhere for people with the same problem, but I could not find anything similar. Any ideas? EDIT: I tried to create a page with ONLY the code of the tutorial, but the error

Google Authentication using OWIN Oauth in MVC5 not hitting ExternalLoginCallback function

青春壹個敷衍的年華 提交于 2019-11-28 07:23:05
I am currently upgrading my login process for Google to use OAuth before they depricate their OpenID login method. The steps I have Identified so far is that I have upgraded the package Microsoft.Owin.Security.Google to version 2.1.0 as this version includes the ability to include options in the UseGoogleAuthentication method. I have tried to use Alex Wheat's Solution in the link: Get ExtraData from MVC5 framework OAuth/OWin identity provider with external auth provider The code in Startup.Auth.cs (which also includes Facebook authentication) goes from this: var facebookAuthenticationOptions =

Google+ API “400 (Bad Request)” and “Refused to display … in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.” errors

谁说胖子不能爱 提交于 2019-11-28 03:45:59
问题 I am trying to integrate the G+ API with my website and am having a problem. If you look at the console when loading the page, you will see the following errors: GET https://accounts.google.com/o/oauth2/postmessageRelay?parent=http%3A%2F%2Fwww.pricewombat.com 400 (Bad Request) cb=gapi.loaded_0:436 Refused to display 'https://accounts.google.com/o/oauth2/postmessageRelay?parent=http%3A%2F%2Fwww.pricewombat.com#rpctoken=356505585&forcesecure=1' in a frame because it set 'X-Frame-Options' to

How can I verify a Google authentication API access token?

旧城冷巷雨未停 提交于 2019-11-28 02:50:41
How can I verify a Google authentication access token? I need to somehow query Google and ask: Is [given access token] valid for the [example@example.com] Google account? Short version : It's clear how an access token supplied through the Google Authentication Api :: OAuth Authentication for Web Applications can be used to then request data from a range of Google services. It is not clear how to check if a given access token is valid for a given Google account. I'd like to know how. Long version : I'm developing an API that uses token-based authentication. A token will be returned upon

Where can I find a list of scopes for Google's OAuth 2.0 API? [closed]

拟墨画扇 提交于 2019-11-28 02:43:33
The example I'm working with specifies the scope in the OAuth request as: scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile which decodes into two URIs: https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile I cannot find documentation covering the complete list of scopes that are available and what information is accessible within each scope - does anyone know if such a thing exists? Antonio Saco What you are looking for is the Google APIs Discovery Service . A few other

Silent sign in to retrieve token with GoogleApiClient

浪子不回头ぞ 提交于 2019-11-27 21:16:42
I am using "Google Sign-In" in my app. Hence I use the class GoogleApiClient to get the user email and the ID token that I need for my backend. When the user signs in, then I have access to an Activity (of course) and I use that Activity to let the GoogleApiClient handle the UI lifecycle stuff by calling builder.enableAutoManage(myActivity, ...) This works fine. However, at a later stage (several days later), I need to get a new token (for some reason that I will not go into further here). I want to get this token silently without user interaction. However, at the point in my code where I need