This class encapsulates an authorization decision based on usernames. Users who authenticate using one of the usernames specified in the policy receive access to the service. Otherwise access is denied.
| Example 5.8. A simple PermitUser policy |
|---|
|
The following example permits only
the AuthorizationPolicy(name="demo_permituser", authorization=PermitUser(userlist=("admin", "root")))
|
Published on May 30, 2024
© BalaSys IT Ltd.
Send your comments to support@balasys.hu


