forked from webinos/Webinos-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolicy.xml
59 lines (57 loc) · 1.85 KB
/
policy.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<policy-set combine="first-matching-target" description="Webinos-test">
<policy combine="first-applicable" description="PZOwner">
<target>
<subject>
<subject-match attr="user-id" match="user1"/>
</subject>
</target>
<rule effect="prompt-oneshot">
<condition combine="or">
<resource-match attr="api-feature" match="http://www.w3.org/ns/api-perms/calendar.read"/>
<resource-match attr="api-feature" match="http://www.w3.org/ns/api-perms/contacts.read"/>
<resource-match attr="api-feature" match="http://wacapps.net/api/devicestatus"/>
</condition>
</rule>
<rule effect="permit">
<condition combine="or">
<resource-match attr="api-feature" match="http://webinos.org/api/context.read"/>
<resource-match attr="api-feature" match="http://webinos.org/api/discovery"/>
<resource-match attr="api-feature" match="http://webinos.org/api/context.store"/>
</condition>
</rule>
<rule effect="deny">
<condition>
<resource-match attr="api-feature" match="*"/>
</condition>
</rule>
</policy>
<policy combine="first-applicable" description="PZFriend">
<target>
<subject>
<subject-match attr="user-id" match="user2"/>
</subject>
</target>
<rule effect="permit">
<condition combine="or">
<resource-match attr="api-feature" match="http://www.w3.org/ns/api-perms/contacts.read"/>
</condition>
</rule>
<rule effect="prompt-oneshot">
<condition combine="or">
<resource-match attr="api-feature" match="http://www.w3.org/ns/api-perms/calendar.read"/>
</condition>
</rule>
<rule effect="deny">
<condition>
<resource-match attr="api-feature" match="*"/>
</condition>
</rule>
</policy>
<policy combine="first-applicable" description="untrusted">
<rule effect="deny">
<condition>
<resource-match attr="api-feature" match="*"/>
</condition>
</rule>
</policy>
</policy-set>