Authentication of AngularStack Facebook, Google+ and Twitter

I am making my first web application using the Angular Fullstack generator. I went through the initialization of the project here: https://github.com/DaftMonk/generator-angular-fullstack

During initialization, I installed oAuth for the following: Facebook, Google+, Twitter

I also use Openshift, and after initializing the project ... I used the steps to add it to openshift. This included setting environment variables for RHC for Facebook, Google+, and Twitter authentication. I added them as well.

However, with my new application ... I cannot create a new account on Facebook, Google+ or Twitter. When I create a new account, these are the errors I get:

Facebook:

Invalid App ID: id

Google +:

401. That’s an error.

Error: invalid_client

The OAuth client was not found.

Request Details
  scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  response_type=code
  redirect_uri=http://site.rhcloud.com/auth/google/callback
  client_id=id
That’s all we know.

Twitter:

Internal Server Error

, , . , - . grea.t :)

+4
3

, , clientSecrets callBackURL. OAuth. Facebook : https://developers.facebook.com/apps/

local.env.js( , :

module.exports = {
  DOMAIN: 'http://localhost:9000',
  SESSION_SECRET: "xxxxxxxxxxxxx",

  FACEBOOK_ID: 'xxxxxxx',
  FACEBOOK_SECRET: 'xxxxxxx',

  TWITTER_ID: 'xxxxxxx',
  TWITTER_SECRET: 'xxxxxx',

  GOOGLE_ID: 'xxxxxxx',
  GOOGLE_SECRET: 'xxxxxxx',

  .....
};
+1

Heroku DOMAIN http/https Google+.

heroku config:set DOMAIN=http://<your app name>.herokuapp.com

redirect_uri_mismatch. , , , Google+ API Google.

0

ID SECRET, OpenShift, ... , .

Google, :

rhc set-env -a GOOGLE_ID = rhc set-env -a GOODLE_SECRET =

local.env.js , , , OpenShift grunt buildcontrol

0

Source: https://habr.com/ru/post/1568798/


All Articles