Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twitter / google plus - me request Not Found response? #111

Open
Gerst20051 opened this issue Jul 30, 2014 · 3 comments
Open

twitter / google plus - me request Not Found response? #111

Gerst20051 opened this issue Jul 30, 2014 · 3 comments

Comments

@Gerst20051
Copy link

I keep getting Not Found for the me request from twitter and google plus. how should i load user data after getting the token via server side through twitter and google plus? Facebook is working perfectly...

@kalanbates
Copy link

@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.

@Gerst20051
Copy link
Author

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

@kalanbates
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants