google-authentication

Google Oauth IMAP asking for permission everytime

本小妞迷上赌 提交于 2019-12-24 12:04:00
问题 I'm currently working on a web-based mail-service (it's not quite a mail-client but it's a lot to explain). However I've never worked with oauth before this but it seems like the way to go, I've based my simple classes on the sampel code. However the sample code doesn't provide the solution on signing in several times, or I've missed it. So basically my problem is that everytime I log in I need to authorize to gmail again while I've seen other services where you do that once and after that

cannot upload to google drive from my android app com.google.android.gms.auth.GoogleAuthException: Unknown

只愿长相守 提交于 2019-12-24 05:42:09
问题 I'm writing an adroid app that used to upload a chosen image to the users' google drive. I have cloned the code from git to another machine and then the image won't upload any more. I get a com.google.android.gms.auth.GoogleAuthException: Unknown exception. but it's caught here: } catch (IOException e) { e.printStackTrace(); } if(fileContent.length() > 5 * 1024 * 1024) { // Resumable Uploads when the file size exceeds a file size of 5 MB. // check link : // 1) https://code.google.com/p/google

cannot upload to google drive from my android app com.google.android.gms.auth.GoogleAuthException: Unknown

℡╲_俬逩灬. 提交于 2019-12-24 05:42:06
问题 I'm writing an adroid app that used to upload a chosen image to the users' google drive. I have cloned the code from git to another machine and then the image won't upload any more. I get a com.google.android.gms.auth.GoogleAuthException: Unknown exception. but it's caught here: } catch (IOException e) { e.printStackTrace(); } if(fileContent.length() > 5 * 1024 * 1024) { // Resumable Uploads when the file size exceeds a file size of 5 MB. // check link : // 1) https://code.google.com/p/google

Google 2 Factor Authentication with Angular and NodeJS

99封情书 提交于 2019-12-24 05:12:00
问题 I am looking for API and Example that can help me to build two-factor authentication of my website for the server as well as the front side. I want to build something like this, http://ngtfaweb.azurewebsites.net/#/home 回答1: You could use Passport Js if you are using node js as backend or you could use services like Auth0 which are one step solution for multiple Oauth. 来源: https://stackoverflow.com/questions/51552680/google-2-factor-authentication-with-angular-and-nodejs

Xamarin Forms Google Authenticateion, Error: disallowed_useragent

蹲街弑〆低调 提交于 2019-12-23 16:08:22
问题 Currently I am developing Xamarin Forms application and I added Google Authentication. Here is my code from PCL: var authenticator = new OAuth2Authenticator( clientId, null, Constants.Scope, new Uri(Constants.AuthorizeUrl), new Uri(redirectUri), new Uri(Constants.AccessTokenUrl), null, true); authenticator.Completed += this.OnAuthCompleted; authenticator.Error += this.OnAuthError; AuthenticationState.Authenticator = authenticator; var presenter = new Xamarin.Auth.Presenters

Xamarin.Forms Google API Authenticating Users with an Identity Provider

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 15:15:10
问题 I am still getting used to Xamarin.Forms and I am on very basic level. I went through many articles for my issue, but to the end couldn't resolve it. So... Currently I am trying to add Google authentication inside my Xamarin.Forms application, which use Droid and iOS (no WP). So far I am following guide from here. I am using Xamarin.Auth to authenticate to Google. Here is some part from my source code. private async void GoogleSheetsButton_Tapped() { string clientId = null; string redirectUri

is there a deep dive on google's oauth2 scopes?

萝らか妹 提交于 2019-12-23 13:13:43
问题 I'm looking for some deep down detailed information on google's use of oauth scopes My Drive app is working, so I get the simple use of scopes. However I have the following detailed questions/issues.. I specify scopes twice. Once in my app and then also in the API Console. What is the respective significance of these two scope declarations? If I remove scopes, must my user re-authorise my app, or is this only required for adding additional scopes? If the answer to 2, is 'I can't silently

400 Bad Request when attempting to insert QR code image for Google Authenticator

烈酒焚心 提交于 2019-12-23 09:18:14
问题 I'm trying to set up two-factor authentication with Google Authenticator on my site. I'm able to generate working codes, but when I insert the image URL into the page, I get the following error in Chrome inspector: GET https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/MyLabel?secret=THESECRET 400 (Bad Request) The code to generate the QR code: try key = crypto.randomBytes(10).toString('hex') catch error console.log "error generating code: #{error}" encoded = base32

Sign in with google, but not google+

做~自己de王妃 提交于 2019-12-23 05:16:07
问题 I have a web app where I'm trying to allow my users to sign in with google as a registration method. On their API I found: https://developers.google.com/+/web/signin/ But that only looks like you can sign in with google+. I know they're basically the same thing, but if a user who doesn't have google+ clicks that to sign in, it asks them to create a google+ account. Is there a way to sign in with just google and not google+? 回答1: You are probably looking for Google oAuth API:- https:/

Authenticating in a Google sheets application

纵饮孤独 提交于 2019-12-23 02:51:15
问题 I have a batch-like application which is periodically invoked by a scheduler, no human user involved. It uses the Perl Net::Google::Spreadsheets package to update some cells in a Google-sheets spreadsheet, by data fetched from a database. For a long time it was simple to authenticate itself by just providing a username and a password to the 'new' method of the package. But as of lately, Google require us to authenticate using the OAuth2 protocol. J.T. provided a solution that I am sure is