Skip to main content

require

Function require 

Source
pub fn require(caller: &Caller, scope: Scope) -> Result<(), AuthError>
Expand description

Refuses a caller whose key does not hold scope. Admin belongs only to an operator key, and the vCon, legal and audit scopes only to a tenant key, so a key holding a scope of the other kind is still refused it.

ยงErrors

AuthError::Forbidden naming scope.