Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
// Given the below regexTerms, you are authorizied if and only if: // You are not black-listed // --and-- you are either white-listed or your faculty type is from 0 to 4 inclusive // --and-- the string 'fp77' does not appear anywhere in your attributes authorizer : { name : net.shrine.authz.providerService.examples.RegexAuthorizer regexTerms : [ "wb-list.isBlack.false" "(wb-list.isWhite.true)|(faculty_type_and_id.faculty_type.[0-4])" "!(fp77)" ] } |
BWAuthorizer
With BWAuthorizer, authorization is granted if the user is white-listed and NOT black-listed.
Code Block | ||||
---|---|---|---|---|
| ||||
// You are authorizied if and only if you are white-listed but NOT black-listed
authorizer : {
name : net.shrine.authz.providerService.authorize.BWAuthorizer
} |
Next Step:
SHRINE 4.1.0 Appendix A.9 - Starting and Stopping the Software
...
Overview
Content Tools