FUNCTION
add_overridable_auth_handler
function add_overridable_auth_handler(scope: text, flags: list<text>, message: (gtv) -> text?, resolver: (gtv, byte_array, list<byte_array>) -> byte_array??): map<text, _auth_handler>Like add_auth_handler, but the auth handler here defined will not be used if a different
auth handler for the same scope was created with add_auth_handler.
As normal, however, for an operation with mount point a.b.operation, an overridable auth
handler with scope a.b will take precedence over a non-overridable auth handler with
scope a
Throws if scope is not valid
Parameters
- scope — The scope of the auth handler - either an operation name or a mount point
- message — The
messageparameter of the auth handler - resolver — The
resolverparameter of the auth handler
See Also
- _auth_handler — for more information on
flags,messageandresolver - add_auth_handler — for a usage example
- get_auth_handler — for a definition of auth handler scope
© 2024 Chromia