RoleTraitsFilter class
Bases: RoleTraits
Base class for all role traits filters.
You should never use this class directly.
Methods¶
get_traits() ¶
get_traits(credentials: Credentials) -> Any
Return the role traits for the indicated credentials.
This method is recursive: role traits filters (see AnyOf
, AllOf
or
NoneOf
) can hold both a role traits value, that the application can use
in its logic, or a RoleTraits
instance. In this latter case, this role
traits filter is processed for further role traits selection.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credentials |
Credentials
|
The credentials that are used to compute the roles traits. |
required |
Returns:
Name | Type | Description |
---|---|---|
Any |
Any
|
The role traits corresponding to the roles held in credentials. |