Skip to main content

scopeAuthorizer

@webda/core


Variable: scopeAuthorizer

const scopeAuthorizer: OperationAuthorizer

Defined in: packages/core/src/services/scopeauthorizer.ts:28

Refuse operations outside the session's token scope; sessions without scopes are unrestricted

Param​

context

calling context

Param​

operationId

operation being called

Param​

_operation

operation definition (unused)

Param​

root0

authorizer options

Param​

root0.probe

true when only checking visibility: return a reason instead of throwing

Returns​

true or throws