|
@ -0,0 +1,8 @@ |
|
|
|
|
|
import auth |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# setup a test user & permission |
|
|
|
|
|
auth.authenticator.add_user("joe", "joepassword") |
|
|
|
|
|
auth.authorizor.add_permission("test program") |
|
|
|
|
|
auth.authorizor.add_permission("change program") |
|
|
|
|
|
auth.authorizor.permit_user("test program", "joe") |