-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Dosen't work authentication with google or facebook ... #942
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
Comments
Have you registered your application with Facebook/Google+/Twitter and added the relevant API keys? As to your second question AFAIK yeah that's fine. |
Not at all. Where i should add relevant API key? |
So first step is to register your app with those three providers. Just Google search "Facebook OAuth". For testing purposes, you'll want to use Then, find the |
I have Google+, Facebook, Twitter, LinkedIn, and GitHub OAuth working for my own site at http://andrewkoroluk.com. My code is at http://github.com/awk34/aksite if you're interested. |
Take a look to the config file. You will find the variables to hold the FB and G ID. |
@Awk34 , I forgot to add that i was not able to enter finally. I didn't get what you wrote. you told me i copy from local.env.sample.js file to server/config/local.env.js. They are exactly the same. What i copy to what? The same things?
Application: CspMetadata |
@remicastaing , where is this config file? and what i should do then? Shall i copy client_id and client_secret there? |
@maryampashmi, you will find it in |
@maryampashmi the reason why you don't see my Have you registered your app on the google developer's console using |
Hi,
With my understanding from documentation i execute only grunt serve , but i am getting error 401 while i select google authentication or any others.
That’s an error.
Error: invalid_client
The OAuth client was not found.
I am not sure if i need to execute somethings inside server such as node app.js or not? it is not written in documentation anythings about server side. How i can solve problem of authentication?
or following error from twitter:
Error: Could not authenticate you. at Strategy.parseErrorResponse (C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\lib\strategy.js:182:10) at Strategy.OAuthStrategy._createOAuthError (C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\lib\strategy.js:349:16) at C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\lib\strategy.js:218:41 at C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\node_modules\oauth\lib\oauth.js:543:17 at passBackControl (C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\node_modules\oauth\lib\oauth.js:397:13) at IncomingMessage. (C:\Users\pasma08\WebstormProjects\CspMetadata\node_modules\passport-twitter\node_modules\passport-oauth1\node_modules\oauth\lib\oauth.js:409:9) at IncomingMessage.emit (events.js:129:20) at _stream_readable.js:908:16 at process._tickCallback (node.js:355:11)
Moreover in part of app.js inside server folder i am getting error from line exports = module.exports = app; after removing first exports, error disappear. Is that fine to remove first exports?
The text was updated successfully, but these errors were encountered: