[nodebb-plugin-sso-google] Google Accounts Integration
-
Installation
$ npm install nodebb-plugin-sso-google
Activate the plugin, restart NodeBB, enter in the API credentials, and restart again for good measure.
Changelog
###v0.2.0
- Updated for NodeBB v0.4.x compatibility -- API credentials will need to be re-entered.
-
There seems to be an issue with this and the Google Developer Console, the callback URL is no longer
/auth/google/callback
but/oauth2callback
.Or am I doing something wrong? The instructions on the plugin should be updated.
For example: https://community.ag-aus.org/login
-
@Nicekiwi your config was wrong. How did you config it? And what is error message from google?
You can see everything is working fine in here:
http://demo.chuyentranphu.com/login -
I got 401 error with Google.401.
That’s an error.
Error: invalid_client
no application name
In google developer console, I setup web application with following parameters:
REDIRECT URIS http://chrome.nodebb.com/auth/google/callback
JAVASCRIPT ORIGINS http://chrome.nodebb.comRequest Details
from_login=1
response_type=code
scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
redirect_uri=http://chrome.nodebb.com/auth/google/callback
as=-4f3302720361ea3b
client_id=XXXXXXXX
hl=en-GBTwitter and Facebook are working fine for me.
-
Hey there @Peter-Zhe-Chen ! This StackOverflow answer may help you out
-
It looks like you're already using OAuth so I assume this won't affect the plugin?
https://support.google.com/accounts/answer/6135882 -
I can not understand the reason for this 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=https://example.com/auth/google/callback client_id= 174957913510-88rfl4p89j2divmjspgirnqgpr3ccbbm.apps.
Client created all the required information he has
-
@julian
Yes.This API is enabled:
BigQuery API Cloud Debugger API Debuglet Controller API Google Cloud Logging API Google Cloud SQL Google Cloud Storage Google Cloud Storage JSON API Google+ API
I could be wrong, but I have all the settings are correct
P.S. i use:
sso plugin: https://github.com/julianlam/nodebb-plugin-sso-google
NodeBB v1.0.0.P.P.S.
I created a new project in the Google Apps Console. Now everything is working. Probably somewhere I did was wrong -
There is a helpful video: Enabling Google SSO for your NodeBB forum - YouTube, which is good, although I needed additional steps, basically Google Admin.
Just in case it's useful for some people, using Google Apps accounts, after installing
nodebb-plugin-sso-google
, activating it, and reloading, I needed to go -with the admin account- to Google Admin:https://admin.google.com > More controls > Apps > Additional Google services > Settings for specific organizational units > example.com > Page 2 > Google Developers Console > On
Then to Google APIs:
https://console.developers.google.com/cloud-resource-manager
Click on Google APIs
View All > Social > Google+ API > Enable > Create
Project name: Example Login
Project ID: example-login
Organization: example.com
Create > Enable > Create credentials
Which API are you using?: Google+ API
Where will you be calling the API from?: Web server (e.g. node.js, Tomcat)
What data will you be accessing?. (x) User data
What credentials do I need?
Create an OAuth 2.0 client ID
Name: Web client 1
Authorized JavaScript origins: https://example.com
Authorized redirect URIs: https://example.com/community/auth/google/callback
Create client ID
Set up the OAuth 2.0 consent screen
Email address: [email protected]
Product name shown to users: Example Login
More customization options
Homepage URL: https://example.com
Product logo URL: https://example.com/content/images/logo-120x120.png
Privacy policy URL: https://example.com/privacy/
Continue > Download credentials > Download > Done
Web client 1
Client ID: (...)
Client secret: (...)
Creation date: (...)
And finally to the NodeBB plugin:
NodeBB Admin > Social Authentication > Google
Enter Client ID, Secret
[yes] Skip email verification for people who register using SSO?
Save
Reload NodeBB
Tested, it works well.
-
@julian said in [nodebb-plugin-sso-google] Google Accounts Integration:
npm install nodebb-plugin-sso-google
Are there any plans for this plugin to work with 1.17 ?