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 message parameter of the auth handler
  • resolver — The resolver parameter of the auth handler

See Also

© 2024 Chromia