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 June 04, 2020
© 2007-2019 BalaSys
Send your comments to support@balasys.hu