GithubHelp home page GithubHelp logo

Comments (3)

kalanbates avatar kalanbates commented on May 29, 2024

@Gerst20051 Were you able to validate your google plus provider inside the oauthd portal with a "Try auth" request?

I can't get the popup to load google's auth gateway page.

from oauthd.

Gerst20051 avatar Gerst20051 commented on May 29, 2024

@kalanbates I'll let you know soon but I think it's fixed now!

from oauthd.

kalanbates avatar kalanbates commented on May 29, 2024

@Gerst20051 I'm thinking the same thing. I ran across this issue report while I was investigating an issue I was having setting up google_plus as an oauth provider in my daemon. Come to find out, the problem I was having testing the provider was due to a corporate network policy designed to keep employees out of gmail...they blacklisted accounts.google.com, but the daemon was not exposing the tunnel connection error to my dev tools. It just kept failing the "Try Auth" test.

Once I figured this out, I switched connections to an unencumbered network and the Try Auth passed.

The odd thing that I'm currently experiencing is that when calling accessToken.me() for a google token, I receive the following response

{
   gender: 1,
   raw: {
      error: {
         code: 403,
         errors: [ ...],
         message: "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration."
      }
   }
}

...the odd part is that I configured (assuming no typos) my Google Auth App identically to my Facebook Auth App, so I'm unsure why the behavior is different.

At any rate,

var getUserProfile = function(accessToken){
        var deferred = $q.defer();
        accessToken.me()
            .done(function(response){
                console.log(response);
                deferred.resolve(response);
            })
            .fail(function(error){

                console.log("An Error occurred retrieving user profile information");
                console.log("Error:" + error);
                deferred.reject(new Error("[Service|GetUserProfile] Failed"));
            });             
        return deferred.promise;
    }

works like a champ at retrieving profile info from the authentication system.

from oauthd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.