Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
243 B

  1. import auth
  2. # setup a test user & permission
  3. auth.authenticator.add_user("joe", "joepassword")
  4. auth.authorizor.add_permission("test program")
  5. auth.authorizor.add_permission("change program")
  6. auth.authorizor.permit_user("test program", "joe")