Fuselage
Powered By GitBook
Get all oAuth
A simple method, requires no authentication, that returns list of all available oauth services.
URL
Requires Auth
HTTP Method
/api/v1/settings.oauth
no
GET

Example Call

1
curl http://localhost:3000/api/v1/settings.oauth
Copied!

Example Result

1
{
2
"services": [
3
{
4
"_id": "iJeY7x4wxnh2p3pLr",
5
"name": "facebook",
6
"clientId": "test",
7
"buttonLabelText": "test",
8
"buttonColor": "#13679A",
9
"buttonLabelColor": "#FFFFFF",
10
"custom": false
11
},
12
{
13
"_id": "iJeY7x4wxnh2p3pLr",
14
"name": "twitter",
15
"clientId": "test",
16
"buttonLabelText": "",
17
"buttonColor": "",
18
"buttonLabelColor": "",
19
"custom": false
20
},
21
{
22
"_id": "5RQ4SBL3NuZKsqxaF",
23
"service": "test",
24
"clientId": "test",
25
"custom": true,
26
"serverURL": "/test/test",
27
"tokenPath": "/oauth/token",
28
"identityPath": "/me",
29
"authorizePath": "/oauth/authorize",
30
"scope": "openid",
31
"buttonLabelText": "test",
32
"buttonLabelColor": "#FFFFFF",
33
"loginStyle": "popup",
34
"buttonColor": "#13679A",
35
"tokenSentVia": "payload",
36
"identityTokenSentVia": "default",
37
"usernameField": "dfsgdfgdfgdfgsd",
38
"mergeUsers": true
39
}
40
],
41
"success": true
42
}
Copied!

Change Log

Version
Description
0.64.0
Renamed field appId to clientId and added flag custom to indicate whether the oauth service is customized and fix id inconsistence(set all cases to _id)
0.63.0
Added
Last modified 6mo ago
Export as PDF
Copy link