|
Authorization
|
|
API reference can be found at http://www.mcs.anl.gov/fl/research/accessgrid/documentation/developer/api_2_4
|
| Example
1 - List defined Roles |
- Download ListRoles.py.
- Make sure a VenueServer is running on your machine
- Run the program:
python GetListRoles.py https://localhost:8000/Venues/default
|
| Exercise 1 - List Subjects in Roles |
- Copy ListRoles.py to ListSubjects.py
- Open ListSubjects.py in an editor.
- Modify the code to call
AuthorizationManagerIW.ListSubjects(role), for each role in the Venue,
and print the returned list of Subjects
- Run the program:
python ListSubjects.py https://localhost:8000/Venues/default
Solution: ListSubjects.py
|
| Additional Example - Venue ACL Editor |
- Download VenueAcls.py
- Run the program:
python VenueAcls.py https://localhost:8000/Venues/default
|