Hypertopic / AAAforREST

An HTTP reverse proxy to bring authentication, authorization and accounting to RESTful applications
GNU Affero General Public License v3.0
6 stars 5 forks source link

Rule syntax for "shared to the world" #39

Closed benel closed 6 years ago

benel commented 8 years ago

In the future simplified rules system, what would be the syntax for the following rules?

"rules": [{
  "control": "/(56e092d8a6179a788c74b618b29801c0|a76306e4f17ed4f79e7e481eb9a1bd06)/.test(path) && method != 'GET' && !/^(aurelien|jean_pierre)$/.test(login)",
  "action": "tryAgain(context)"
},{
  "control": "method != 'GET' && method != 'OPTIONS'",
  "action": "authenticate(context, function(){proxyWork(context);});"
}]