Authorization policies determine how the user is authorized to access
the service. The authorization_policy
attribute
of a service can reference an instance of the AuthorizationPolicy class.
Example 5.3. A simple authorization policy |
---|
The following example defines an authotization policy that
can be referenced in a service definition and permits only the members of
the AuthorizationPolicy(name="demo_authorization_policy", authorization=PermitGroup(grouplist=("admin", "system"))) To use the authorization policy, include it in the definition of the service: Service(name="office_http_inter", proxy_class=HttpProxy, authentication_policy="demo_authentication_policy", authorization_policy="demo_authorization_policy") |
Published on May 30, 2024
© BalaSys IT Ltd.
Send your comments to support@balasys.hu