mei_rt2mei_rt2_fix_1
Last change
on this file since c7df2ad was
f824a9e,
checked in by Mei <mei@…>, 12 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
928 bytes
|
Rev | Line | |
---|
[5f551d3] | 1 | # |
---|
| 2 | # The example makes use of 2 principals, Acme and Coyote. |
---|
| 3 | # |
---|
| 4 | # This example shows a very simple delegation of roles by Acme. Acme's |
---|
[f824a9e] | 5 | # buy_rockets role includes all of Acme's preferred customers. The setup.py |
---|
| 6 | # creates the principals and the attr.py creates 2 policy credentials. |
---|
| 7 | # Credential 1 encodes the policy that all of Acme's preferred customers |
---|
| 8 | # can buy rockets from Acme and |
---|
[5f551d3] | 9 | # Credential 2 defines the Coyote as an Acme preferred customer. |
---|
| 10 | |
---|
| 11 | # The ./run_query script issues queries to show that the Coyote is both a preferred |
---|
| 12 | # customer and can buy rockets. Two invalid queries are also made, checking if |
---|
| 13 | # Acme is the Coyote's friend, which it isn't and whether a query about |
---|
| 14 | # something other than a principal works (it doesn't). |
---|
| 15 | |
---|
[f824a9e] | 16 | # acme_rockets_rt0 |
---|
[5f551d3] | 17 | |
---|
| 18 | # Credential 1 |
---|
[f824a9e] | 19 | #[keyid:Acme].role:buy_rockets <- [keyid:Acme].role:preferred_customer |
---|
[5f551d3] | 20 | |
---|
| 21 | # Credential 2 |
---|
[f824a9e] | 22 | #[keyid:Acme].role:preferred_customer <- [keyid:Coyote] |
---|
[5f551d3] | 23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.