dgafka/authorization-security

Take care of authorization concerns for you. Takes out security out of your domain logic and provides clean and easy API to do it.

1.0.3 2015-09-19 18:54 UTC

This package is auto-updated.

Last update: 2024-11-29 03:58:19 UTC


README

Build Status

Authorization Security provides powerful open for extending library. The main idea behind it, is to provide easy to read, clean way of securing your applications.

Example usage of security:

    /*
    * @AuthorizationSecurity(type="standard", userFactory="roleUserFactory")
    * @AuthorizationExpression(" user.hasRole('moderator') and resource.isAvailable() ")
    * @AuthorizationResourceFactory("resourceFactory", parameters="article")
	* @AuthorizationPolicy("isMonday")
	* @AuthorizationPolicy("hasPremiumAccount")
    */
    public function changeArticle($command)

Read Authorization Security Wiki to get known with library Read Here

Add Annotation Security as dependency

    "require": {
        "dgafka/authorization-security": "*"
    }