authorize<T>(req, authSpecs, log): asserts req is AuthdReqString<T>
Use the authorize function to easily authorize requests according to the given auth spec. It ensures that requests
contain auth info and additionally fulfill one of the given authorization requirements in authSpecs.
NOTE: For auth specs, it is sufficient that all of the specified clauses in just ONE of the tuples pass
authorization. I.e., authSpecs is an array of authorization criteria, any one of which will authorize the request.
Use the
authorize
function to easily authorize requests according to the given auth spec. It ensures that requests contain auth info and additionally fulfill one of the given authorization requirements in authSpecs.NOTE: For auth specs, it is sufficient that all of the specified clauses in just ONE of the tuples pass authorization. I.e.,
authSpecs
is an array of authorization criteria, any one of which will authorize the request.