kumo.aaa.query_resource_access
Since: Dev Builds Only
The functionality described in this section requires a dev build of KumoMTA. You can obtain a dev build by following the instructions in the Installation section.
Note
This function is currently rather abstract and of limited utility, and that is reflected by the lack of examples on this page.
This function can be used to check whether an AUTH_INFO has PRIVILEGE
access to RESOURCE. This is useful when performing access control checks
within your own custom policy.
RESOURCE is a resource object identifying the resource that is being accessed.
PRIVILEGE is a string describing the nature of the access privilege that is being attempted.
AUTH_INFO is an AuthInfo describing the authentication status of the current session.
You will typically obtain the auth info from the connection metadata, but you can also
define an auth info for yourself in code if you have an advanced use case.