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

  1. Download ListRoles.py.

  2. Make sure a VenueServer is running on your machine

  3. Run the program:

    python GetListRoles.py https://localhost:8000/Venues/default

Exercise 1 - List Subjects in Roles

  1. Copy ListRoles.py to ListSubjects.py

  2. Open ListSubjects.py in an editor.

  3. Modify the code to call AuthorizationManagerIW.ListSubjects(role), for each role in the Venue, and print the returned list of Subjects

  4. Run the program:

    python ListSubjects.py https://localhost:8000/Venues/default

    Solution: ListSubjects.py 

Additional Example - Venue ACL Editor

  1. Download VenueAcls.py

  2. Run the program:

    python VenueAcls.py https://localhost:8000/Venues/default