auth_admin

Requires administrator authentication.

Target function

Signature

1auth_admin(-realm::string='Lasso Security', ...)

Requires administrator authentication.

auth_admin is a global callable that can be used wherever an expression is valid. auth_admin works with request identity or stored session state. Keep authorization checks close to the action they protect.

Parameters

-realm
Optional value of type string. Supply -realm by keyword, keeping the leading hyphen in the call.
...
Additional values may be supplied after the earlier arguments.

Examples

Basic call

1auth_admin(-realm='Lasso Security')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.