Update example configuration file to include APC org and realm
[trust_router.git] / tr / organizations.cfg
1 {
2   "communities": [
3     {
4       "apcs": [],
5       "community_id": "apc.x",
6       "idp_realms": ["apc.x",
7                      "idp.x",
8                      "other.idp.x"],
9       "rp_realms": ["rp.x",
10                     "other.rp.x"],
11       "type": "apc",
12       "expiration_interval": 30
13     },
14     {
15       "apcs": ["apc.x"],
16       "community_id": "coi.x",
17       "idp_realms": ["idp.x"],
18       "rp_realms": ["rp.x"],
19       "type": "coi"
20     }
21   ],
22   "local_organizations": [
23     {
24       "organization_name": "APC",
25       "realms": [
26         {
27           "realm": "apc.x",
28           "identity_provider": {
29             "aaa_servers": [
30               "apc.local"
31             ],
32             "apcs": [
33               "apc.x"
34             ],
35             "shared_config": "no"
36           }
37         }
38       ]
39     },
40     {
41       "organization_name": "Demo Organization",
42       "realms": [
43         {
44           "realm": "rp.x",
45           "gss_names": ["rp-cred@apc.x",
46                         "second-rp-cred@apc.x"],
47           "filters": {
48             "tid_inbound": [
49               {
50                 "action": "accept",
51                 "domain_constraints": [
52                   "*.local"
53                 ],
54                 "specs": [
55                   {
56                     "field": "rp_realm",
57                     "match": "rp.x"
58                   },
59                   {
60                     "field": "rp_realm",
61                     "match": "*.rp.x"
62                   }
63                 ],
64                 "realm_constraints": [
65                   "rp.x", "*.rp.x"
66                 ]
67               }
68             ]
69           }
70         },
71         {
72           "realm": "other.rp.x",
73           "gss_names": ["other-rp-cred@apc.x"]
74         },
75         {
76           "realm": "idp.x",
77           "gss_names": ["idp-cred@apc.x"],
78           "identity_provider": {
79             "aaa_servers": ["idp.local"],
80             "apcs": ["apc.x"],
81             "shared_config": "no"
82           }
83         },
84         {
85           "realm": "other.idp.x",
86           "gss_names": ["other-idp-cred@apc.x"],
87           "identity_provider": {
88             "aaa_servers": ["idp.local"],
89             "apcs": ["apc.x"],
90             "shared_config": "no"
91           }
92         }
93       ]
94     }
95   ],
96   "peer_organizations": [
97     {
98       "hostname": "peer.example.com",
99       "port": 12310,
100       "gss_names": ["peer-cred@apc.x"]
101     }
102   ]
103 }