linagora-rse
Version:
64 lines (46 loc) • 1.33 kB
Markdown
This module is used to link external accounts to OpenPaaS using OAuth.
The configuration for each provider must be defined in the oauth document in the configuration collection like:
```
{
"_id": "oauth",
"twitter": {
"consumer_key": "YOUR CONSUMER KEY",
"consumer_secret": "YOUR CONSUMER SECRET"
}
}
```
Register a new application on https://apps.twitter.com/ and add the following JSON to the OAuth document:
```
"twitter": {
"consumer_key": "YOUR_CONSUMER_KEY",
"consumer_secret": "YOUR_CONSUMER_SECRET"
}
```
Register a new application on https://developers.facebook.com and add the following JSON to the OAuth document:
```
"google": {
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET"
}
```
Register a new application on https://console.developers.google.com/ and add the following JSON to the OAuth document:
```
"google": {
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET"
}
```
Register a new application on https://github.com/settings/developers or on your organization settings and add the following JSON to the OAuth document:
```
"github": {
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET"
}
```