This class encapsulates an authorization decision based on group membership. Users who authenticate as a member of a usergroup specified in the policy receive access to the service. Otherwise access is denied.
Example 5.6. A simple PermitGroup policy |
---|
The following example permits only the members of
the AuthorizationPolicy(name="demo_authorization_policy", authorization=PermitGroup(grouplist=("admin", "system"))) |
Published on May 30, 2024
© BalaSys IT Ltd.
Send your comments to support@balasys.hu