google-oauth

How to implement OAuth in google classroom

你离开我真会死。 提交于 2020-01-07 09:09:19
问题 Presently i am working on google classroom API to integrate classroom into my .NET product.I am using below method for authenticating user.My problem is when i execute this code it asking authentication for first time but when i execute this code next time it directly log in as previous log in credentials.When i try this after many days and many browsers also directly log in as first authenticated user.But for every fresh time execution of code i want it ask for authentication of user rather

What Google Account is associated with an OAuth Client ID?

别说谁变了你拦得住时间么 提交于 2020-01-07 07:10:53
问题 We have some old configurations which make use of an OAuth Client ID, and we're trying to determine which Google Developer account created it. We have both the client ID and secret. Is is possible for us to determine which Google account they're associated with? We'd prefer to not have to switch to a new account. Any help is appreciated, thanks! 回答1: Is this client ID still used on some website for sign-in? If so, you could try to sign-in with an account that hasn't authenticated yet, and in

How to authenticate in Fusion tables with Oauth v2

五迷三道 提交于 2020-01-07 05:32:02
问题 I'm trying to execute the example from: https://code.google.com/p/google-api-java-client/source/browse?repo=samples#hg%2Ffusiontables-cmdline-sample Which is basically an example on how to authenticate and use Fusion API. I can't make it work...at this point: // authorize return new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize("user"); The browser shows an "Error:redirect_uri_mismatch". The weird thing here is that the other examples that authenticate using Oauth

How to authenticate in Fusion tables with Oauth v2

*爱你&永不变心* 提交于 2020-01-07 05:31:39
问题 I'm trying to execute the example from: https://code.google.com/p/google-api-java-client/source/browse?repo=samples#hg%2Ffusiontables-cmdline-sample Which is basically an example on how to authenticate and use Fusion API. I can't make it work...at this point: // authorize return new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize("user"); The browser shows an "Error:redirect_uri_mismatch". The weird thing here is that the other examples that authenticate using Oauth

Google Oauth2 in GWT and AppEngine

梦想与她 提交于 2020-01-07 04:57:30
问题 I'm trying to implement authentication for Google Drive: https://google-developers.appspot.com/drive/auth/web-server 1st, it's not obvious when the user is redirected to the Google login page to authenticate. It doesn't appear they are showing that part. 2nd, it doesn't show the call back code. I think I can figure that out and will need to add a new servlet or service or EntryPoint, but might be tricky with GWT. 3rd, and most important, I keep getting a ClassNotFoundException even though the

Django oauth2 google not working on server

喜夏-厌秋 提交于 2020-01-06 21:08:54
问题 I'm using outh2 to authenticate. I need it for google calendar v3 api. On localhost everything works fine. But when I publish it on the heroku server I get Application Error (based on error code is timeout - after 30s). I have created separeted google project (for google id and secret). Here is my code import gflags import httplib2 from apiclient.discovery import build from oauth2client.file import Storage from oauth2client.client import OAuth2WebServerFlow from oauth2client.tools import run

oAuth token for multiple services

 ̄綄美尐妖づ 提交于 2020-01-06 19:52:48
问题 I have a Dropbox account which was created by logging in via the Google account. So, my Dropbox account is linked to the Google account . I have an android application and my users can create their accounts either via Google/Facebook. The question is,if it is possible for the user to login to our app once via his Google Account, and then using these same underlying google's credentials the user automatically gets logged in to Dropbox Account [Maybe a simple 'OK' button authentication is

Gmail API on GAE: Correctly using discovery.build_from_document()

我们两清 提交于 2020-01-06 15:49:37
问题 I'm running a number of tasks on the GMail API and am getting the same error as described in this issue. To resolve it, I would like to implement the suggested solution. However I am not sure how to apply this to my code. My code currently looks as follows: class getLatest(webapp2.RequestHandler): def post(self): try: email = self.request.get('email') g = Credentials.get_by_id(email) REFRESH_TOKEN = g.refresh_token start_history_id = g.hid credentials = OAuth2Credentials(None, settings.CLIENT

Gmail API on GAE: Correctly using discovery.build_from_document()

可紊 提交于 2020-01-06 15:49:11
问题 I'm running a number of tasks on the GMail API and am getting the same error as described in this issue. To resolve it, I would like to implement the suggested solution. However I am not sure how to apply this to my code. My code currently looks as follows: class getLatest(webapp2.RequestHandler): def post(self): try: email = self.request.get('email') g = Credentials.get_by_id(email) REFRESH_TOKEN = g.refresh_token start_history_id = g.hid credentials = OAuth2Credentials(None, settings.CLIENT

Trying to Creating users in Google Apps domain in Windows Forms code

北城以北 提交于 2020-01-06 15:21:35
问题 I'm trying to create a user from a windows forms application. I've managed to do it in a consoleapp, but I want it in a proper windows app. :) To get the authentication right' I've tried to figure out how the AssertionFlowClient is working, but it won't come out right. Here's the critical code: private void CreateUserBtn_Click(object sender, EventArgs e) { var provider = new AssertionFlowClient(GoogleAuthenticationServer.Description, new X509Certificate2(@"C:\key.p12", "notasecret",