Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Finally the authorizer is named and configured:. In the present case, the HmsAuthorizer, which makes use of the attributes generated by a WhiteBlackListAttrProvider and a REST call to the HMS profiles service. 

Code Block
languageyml
themeMidnight
  authorizer : {
    name : net.shrine.authz.providerService.authorize.HmsAuthorizer
  }

 

}
Code Block
languageyml
themeRDark
  ////////////////////////////////////////////////////////////
  // example of an alternate authorizer: RegexAuthorizer    //
  ////////////////////////////////////////////////////////////
  authorizer : {
      name : net.shrine.authz.providerService.examples.RegexAuthorizer
      regexTerms :
          [
             "wb-list.isBlack.false"
             "(wb-list.isWhite.true)|(profiles_faculty_type_and_id.faculty_type.[0-4])"
             "!(fp77)"
          ]

    } 

...