Page Contents

Home > @loopback/authorization > AuthorizationOptions

AuthorizationOptions interface


export interface AuthorizationOptions 


Property Type Description
defaultDecision AuthorizationDecision.DENY | AuthorizationDecision.ALLOW Default decision if all authorizers vote for ABSTAIN If not set, default to AuthorizationDecision.DENY
precedence AuthorizationDecision.DENY | AuthorizationDecision.ALLOW Controls if Allow/Deny vote takes precedence and override other votes. If not set, default to AuthorizationDecision.DENY.Once a vote matches the precedence, it becomes the final decision. The rest of votes will be skipped.