Page Contents

Home > @loopback/authorization > Enforcer > enforce

Enforcer.enforce() method

Decide if the request can be granted access

Signature:

enforce(request: AuthorizationRequest): Promise<AuthorizationDecision>;

Parameters

Parameter Type Description
request AuthorizationRequest  

Returns:

Promise<AuthorizationDecision>