Skip to main content

authorize

Description

SecuritySource code

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus a tellus nec metus tempus volutpat nec non velit. Nulla feugiat cursus dui, eu consequat enim vestibulum in. Mauris pulvinar posuere interdum. Vivamus pharetra elementum lobortis. Morbi blandit aliquam nisi. In in molestie quam. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nullam vulputate congue viverra. Pellentesque consequat nisi ut ante blandit, nec congue ex tincidunt. Suspendisse ac sem vel velit aliquam bibendum. Phasellus nec mi vitae nulla ultrices maximus a sit amet ipsum.

Options

condition

conditionstring (Value expression)

Condition is the predicate expression for authorization.

has

hasstring[]

check

checkMap<string,any>

error

error *string

Examples

Check user authenticated

interfaces:
MyService:
myOperation:
steps:
- name: "Check user authenticated"
uses: "authorize"
with:
has: "sub"