forked from trane/borderpatrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbpConfig.json
113 lines (113 loc) · 2.8 KB
/
bpConfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"listeningPort": "8080",
"statsdReporter": {
"host": "localhost:8125",
"durationInSec": 60,
"prefix": "bp"
},
"allowedDomains": ["api.localhost", "ent.localhost"],
"sessionStore": {
"type": "InMemoryStore"
},
"secretStore": {
"type": "InMemorySecretStore"
},
"accessLog": {
"logDestination": "/tmp/borderpatrol/bp_access.log",
"fileSizeInMegaBytes": 2,
"fileCount": 8
},
"endpoints": [
{
"name": "tokenmaster-identity-example",
"hosts": ["http://localhost:8081"],
"path": "/identityProvider"
},
{
"name": "tokenmaster-access-example",
"hosts": ["http://localhost:8081"],
"path": "/accessIssuer"
},
{
"name": "tokenmaster-health-check-example",
"hosts": ["http://localhost:8081"],
"path": "/health"
},
{
"name": "aad-authorize-example",
"hosts": ["http://localhost:8081"],
"path": "/common/oauth2/authorize"
},
{
"name": "aad-token-example",
"hosts": ["http://localhost:8081"],
"path": "/common/oauth2/token"
},
{
"name": "aad-certificate-example",
"hosts": ["http://localhost:8081"],
"path": "/common/certificate"
}
],
"loginManagers": [
{
"name": "internal",
"type": "tokenmaster.basic",
"guid": "1111-1111-11111111",
"loginConfirm": "/z/login",
"authorizePath": "/z",
"identityEndpoint": "tokenmaster-identity-example",
"accessEndpoint": "tokenmaster-access-example"
},
{
"name": "external",
"type": "tokenmaster.oauth2",
"guid": "1111-1111-22222222",
"loginConfirm": "/signin",
"loggedOutUrl": "http://www.example.com",
"identityEndpoint": "tokenmaster-identity-example",
"accessEndpoint": "tokenmaster-access-example",
"authorizeEndpoint": "aad-authorize-example",
"tokenEndpoint": "aad-token-example",
"certificateEndpoint": "aad-certificate-example",
"clientId": "MySecretClientId",
"clientSecret": "MySecretClientSecret"
}
],
"serviceIdentifiers": [
{
"hosts": ["http://localhost:8081"],
"path": "/serv",
"name": "one"
},
{
"hosts": ["http://localhost:8081"],
"path": "/top",
"rewritePath": "/internal/top",
"name": "two"
},
{
"hosts": ["http://localhost:8081"],
"path": "/z",
"protected": false,
"name": "login"
}
],
"customerIdentifiers": [
{
"subdomain": "ent",
"guid": "2222-1111-11111111",
"loginManager": "internal",
"defaultServiceIdentifier": "one"
},
{
"subdomain": "api",
"guid": "2222-1111-22222222",
"loginManager": "external",
"defaultServiceIdentifier": "two"
}
],
"healthCheckEndpoints": [
"tokenmaster-health-check-example"
]
}