Versions Compared

Key

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

...

If you want to use authorization, you 'll have to start by adding must first add the following configuration to shrine.conf, after the existing shrine block:

...



The authorization system works with a any number of individually configured attribute providers which generates each generate "attributes", and each requiring its own configuration, and one authorization provider which determines based on the attribute providers .  Further, a single authorization provider, also configured here, will determine based on the provided attributes whether the user is authorized or not. Beyond the configuration items above, the config file has the following overall structure:

Code Block
languageyml
themeMidnight
shrine.config.authorizer : {

  unauthorizedUrl = "/shrine-api/shrine-webclient?isAuth=false"

  attributeProviders :
  [  
    ...
    ...
  ],
  authorizer : {
    ...
  }
}

...