get_mount_scope_auth_handler
function get_mount_scope_auth_handler(auth_handlers: map<text, _auth_handler>, op_name: text): _auth_handler?(source)
Retrieves the auth handler that should be applied to the given operation name, only looking through mount scope auth handlers.
Example: If the operation a.b.my_op
is passed, it will return the first auth handler found from this list:
an auth handler with scope
a.b
an auth handler with scope
a
null regardless of whether an auth handler with scope
a.b.my_op
exists.
Parameters
auth_handlers
the map returned by auth_handler()
op_name
the mount name of the operation to check