Fix default TRPS port. Add example config files.
[trust_router.git] / tr / organizations.cfg
1 {
2   "communities": [
3     {
4       "apcs": [],
5       "community_id": "apc.x",
6       "idp_realms": ["idp.x", "other.idp.x"],
7       "rp_realms": ["rp.x", "other.rp.x"],
8       "type": "apc",
9       "expiration_interval": 10
10     },
11     {
12       "apcs": ["apc."],
13       "community_id": "coi.x",
14       "idp_realms": ["idp.x"],
15       "rp_realms": ["rp.x"],
16       "type": "coi"
17     }
18   ],
19   "local_organizations": [
20     {
21       "organization_name": "Demo Organization",
22       "realms": [
23         {
24           "realm": "rp.x",
25           "gss_names": ["alpha-cred@apc.x",
26                         "beta-cred@apc.x",
27                         "gamma-cred@apc.x"],
28           "filters": {
29             "tid_inbound": [
30               {
31                 "action": "accept",
32                 "domain_constraints": [
33                   "*.local"
34                 ],
35                 "specs": [
36                   {
37                     "field": "rp_realm",
38                     "match": "rp.x"
39                   },
40                   {
41                     "field": "rp_realm",
42                     "match": "*.rp.x"
43                   }
44                 ],
45                 "realm_constraints": [
46                   "rp.x", "*.rp.x"
47                 ]
48               }
49             ]
50           }
51         },
52         {
53           "realm": "other.rp.x",
54           "gss_names": ["something@apc.x"]
55         },
56         {
57           "realm": "idp.x",
58           "gss_names": ["alpha-cred@apc.x"],
59           "identity_provider": {
60             "aaa_servers": ["alpha.local"],
61             "apcs": ["apc.x"],
62             "shared_config": "no"
63           }
64         },
65         {
66           "realm": "other.idp.x",
67           "gss_names": ["beta-cred@apc.x"],
68           "identity_provider": {
69             "aaa_servers": ["alpha.local"],
70             "apcs": ["apc.x"],
71             "shared_config": "no"
72           }
73         }
74       ]
75     }
76   ],
77   "peer_organizations": [
78     {
79       "hostname": "gamma.local",
80       "port": 12310,
81       "gss_names": ["gamma-cred@apc.x"]
82     }
83   ]
84 }