README.md 812 B

AuthBundle

Installation

composer.json:

"repositories": [
    {
        "type": "vcs",
        "url":  "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/AuthBundle.git"
    }
],
"require": {
    "ik/auth-bundle": "dev-master"
},

app/AppKernel.php:

public function registerBundles()
{
    $bundles = [
        new AuthBundle\AuthBundle(),
    ];
    .
    .
}

app/config/config.yml:

imports:
    - { resource: "@AuthBundle/Resources/config/services.yml" }

app/config/security.yml:

Si se requiere la autenticación OAuth

security:
    firewalls:       
        api:
            pattern: ^/api
            stateless: true
            oauth_proxy: true

    access_control:
        - { path: ^/api, role: ROLE_USER }