Access configuration - SamuelPouzet/auth GitHub Wiki

'authentication' => [
    'permissive' => true,
    'access_filter' => [
        IndexController::class => [
            'index' => '*'
        ],
        LoginController::class => [
            'index' => '@'
        ],
        ProtectedController::class => [
            'index' => '@'
        ],
    ]
],

permissive: if true when a config is not provided, allows access, if false, denies !

access_filter requires an array the key is the classname of the controller we want to provide, the values is an array with a pair action => privilege If "*", the access is allowed to everyone, if "@", the access requires to be connected.