-
Notifications
You must be signed in to change notification settings - Fork 11
/
syn-settings.example.xml
36 lines (29 loc) · 1.21 KB
/
syn-settings.example.xml
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
<config version='1' header="X-Islandora-Roles">
<!--
Sites can be specified with a Key inline, or with a reference to a key
stored in a file. Both are shown in examples below.
The encoding parameter depends on what algorithm is chosen.
HS256, HS384, HS512 support: plain and base64.
RS256, RS384, RS512 support: PEM.
-->
<!-- A site with an inline key -->
<site url='http://test.com' algorithm='HS256' encoding='plain'>
my secret key
</site>
<!-- A site with a key stored in a file -->
<site url='http://test2.com' algorithm='HS256' encoding='base64' path='/somewhere/on/filesystem.key'/>
<!-- A site that allows all GET requests -->
<site url='http://test3.com' algorithm='HS256' encoding='plain' anonymous='true'/>
<!--
This is how you specify a default site, which will be chosen if no
other site matches the JWT url claim
-->
<site algorithm='RS256' encoding='PEM' path='/somewhere/on/filesystem.key' default='true'/>
<!--
This lets you specify a master token for testing. This should be used with care, as it gives anyone
with this token unlimited access to your repository.
-->
<token user='test' roles='role1,role2,role3'>
my super secret token
</token>
</config>