Security Annotations
Security annotations are used to secure your handler and/or handler actions
Last updated
Was this helpful?
Security annotations are used to secure your handler and/or handler actions
Last updated
Was this helpful?
Was this helpful?
// Secure the entire handler
component secured{
function index(event,rc,prc){}
function list(event,rc,prc){}
}
// Same as this
component secured=true{
}
// Do NOT secure the handler
component secured=false{
}
// Same as this, no annotation!
component{
function index(event,rc,prc) secured{
}
function list(event,rc,prc) secured="list"{
}
}// Secure this handler
component secured="admin,users"{
function index(event,rc,prc) secured="list"{
}
function save(event,rc,prc) secured="write"{
}
}