google-oauth

Login via google and facebook using django-social-auth

≡放荡痞女 提交于 2020-01-17 13:41:10
问题 I am trying to integrate django-social-auth on my django app which is running on google app engine. I am trying to implement google-oauth2 and facebook oauth login using django-social-auth. SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '377490210257-****' SOCIAL_AUTH_GOOGLE_OAUTH2_CLIENT_SECRET = '***********' SOCIAL_AUTH_FACEBOOK_APP_ID = '******' SOCIAL_AUTH_FACEBOOK_SECRET = 'xxxx' AUTHENTICATION_BACKENDS = ( 'social_auth.backends.facebook.FacebookBackend', 'social_auth.backends.google

CAS OAuth Authentication Using Google OAuth 2.0 and Using Yahoo OAuth 1.0

血红的双手。 提交于 2020-01-17 04:06:06
问题 I've successfully configured my CAS v. 3.5.2 to delegate authentication to Yahoo using OAuth 1.0 by following the instruction Jasig CAS Wiki at https://wiki.jasig.org/display/CASUM/Configuration+for+the+OAuth+client+support+in+CAS+server+version+%3E%3D+3.5.1 Now, I am trying to add the authentication with Google using OAuth 2.0. For that, I am using Google2Provider by updating the dependency on scribe-up to 1.3.1. But the following error is thrown upon accessing CAS login page: SEVERE:

How can I create google apps user account programatically

老子叫甜甜 提交于 2020-01-16 18:46:54
问题 My organisation (Polish Scouting Association) has it's own google apps domain, and every scout is entiteled to have one e-mail address. We decided to create an WWW application in which user can authorize, and sets up his own google apps account. To do this we need to have a progammatic, non-interactive a way to create google apps accounts. To be clear: User logs in to our application using credentials we use throught out organisation He initiates google apps account creation Our application

How to add functionality of Google SIgn-In in Phonegap Hybrid HTML app

余生颓废 提交于 2020-01-16 17:18:10
问题 How to implement Google Login in Phonegap App & also how to check whether the user is logged in or not as soon as the user opens up the app ? I am already aware of the EddyVerbruggen Plugin but it doesn't tells the status of login, it just logs in the user and also its trysilentLogin method doesn't works (yields error : 4) . Without knowing the login status how can I direct my users to the welcome page of my app. HTML : <body onload="init()"> </body> config.xml : <plugin name="cordova-plugin

google oauth2 get token javascript post request

被刻印的时光 ゝ 提交于 2020-01-16 05:17:26
问题 I saw some questions and answers about this but couldn't understand what to do. I get this error: XMLHttpRequest cannot load https://accounts.google.com/o/oauth2/token. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63342' is therefore not allowed access. The response had HTTP status code 400. As I saw from previous posts, this is because I can't make an HTTP POST request to another server. I saw some things about using jsonp but couldn

I am getting an Error in listing the google drive files using Java: 401 Unauthorised error

元气小坏坏 提交于 2020-01-16 05:06:31
问题 I am trying to list the files in my Google Drive account using a Java application. I followed the Java QuickStart tutorial in the Google developers page, and i have my client secret file and here is my code: Drive service = DriveQuickstart.getDriveService(); FileList result = service.files().list() .setPageSize(10) .setFields("nextPageToken, files(id, name)") .execute(); List<File> files = result.getFiles(); if (files == null || files.size() == 0) { System.out.println("No files found."); }

Does Google AppScript (GAS) supports O-Auth 2.0 Implicit Grant-Type

房东的猫 提交于 2020-01-15 09:32:27
问题 I'm trying to create a new Gmail add-on using Google Apps Script and trying to access third-party, non-Google API. For that I am using O-Auth 2.0 Implicit Grant-Type for authentication. This is how the AuthService looks like : function getOAuthService() { return OAuth2.createService('Podio O-Auth') .setAuthorizationBaseUrl('Base Url') .setTokenUrl('Token Url') .setClientId('clientId') .setClientSecret('clientSecret') .setParam('redirect_uri', 'https://script.google.com/macros/d/' + scriptID +

Does Google AppScript (GAS) supports O-Auth 2.0 Implicit Grant-Type

本秂侑毒 提交于 2020-01-15 09:32:12
问题 I'm trying to create a new Gmail add-on using Google Apps Script and trying to access third-party, non-Google API. For that I am using O-Auth 2.0 Implicit Grant-Type for authentication. This is how the AuthService looks like : function getOAuthService() { return OAuth2.createService('Podio O-Auth') .setAuthorizationBaseUrl('Base Url') .setTokenUrl('Token Url') .setClientId('clientId') .setClientSecret('clientSecret') .setParam('redirect_uri', 'https://script.google.com/macros/d/' + scriptID +

undefined method 'change' for :Fixnum when updating Timestamp value

核能气质少年 提交于 2020-01-15 08:58:33
问题 I'm using Google's OAuth2 API in a project, using Omniauth to enable creating the initial accounts with little effort, but in order to use the APIs I need to refresh the access_token since they're only valid for an hour, but I'm having an issue updating the expires_at value when I refresh the token. Here's the code I'm using for requesting the token refresh: require 'oauth2' class Identity < ActiveRecord::Base belongs_to :user def refresh_access_token case self.provider when "google" client =

Google Sign in server auth code nil iOS?

不问归期 提交于 2020-01-15 07:34:11
问题 We have Google sign in our application.We are providing serverClientID at the time of request of login. We are getting user.serverAuthCode as nil. Our request is like below : func googleLogin(){ var configureError: NSError? GGLContext.sharedInstance().configureWithError(&configureError) assert(configureError == nil, "Error configuring Google services: \(configureError)") let gid = GIDSignIn.sharedInstance() if let path = Bundle.main.path(forResource: "GoogleService-Info", ofType: "plist") {