Giter Site home page Giter Site logo

autheticator-client-bundle's Introduction

Authenticator Client Bundle

Instalación del bundle

Agregar al composer.json

    "require": {
        ...
        "micayael/autheticator-client-bundle": "^1.0.0"
    },

Activación del bundle en el AppKernel.php

        $bundles = [
            ...
            new Csa\Bundle\GuzzleBundle\CsaGuzzleBundle(),
            new Micayael\Authenticator\ClientBundle\AuthenticatorClientBundle(),
            ...
        ];

Configuración del guzzle para consultar el servicio del authenticator

csa_guzzle:
    profiler: '%kernel.debug%'
    logger: true
    clients:
        authenticator:
            config:
                base_uri: http://localhost:8001
                headers:
                    "Content-Type": application/json

Configuración del bundle

Para ver la documentación de las configuraciones: bin/console config:dump-reference authenticator_client

authenticator_client:
    host: http://IP:PORT
    token_uri: /api/jwt/token # opcional
    default_target_route: admin # opcional, default: admin
    change_password_url: http://authenticator_url/admin/resetting/request
    type: basic_auth
    basic_auth:
        username: app1
        password: app1

o

authenticator_client:
    host: http://IP:PORT
    change_password_url: http://authenticator_url/admin/resetting/request
    type: app_id
    app_id: app2_id_test

Publicación de assets

bin/console assets:install --relative --symlink

Importación de rutas en el archivo routing.yml

authenticator:
    resource: "@AuthenticatorClientBundle/Resources/config/routing.yml"
    prefix: /

Configuración del security

    providers:
        authenticator:
            id: 'authenticator_client.authenticator_user_provider'

    encoders:
        AppBundle\Security\User\AuthenticatorUser: plaintext

    firewalls:
        main:
            anonymous: ~
            logout:
                path: /logout

            guard:
                authenticators:
                    - 'authenticator_client.login_form_authenticator'

    access_control:
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/admin, roles: ROLE_USER }

Documentación Extra

Referencias

autheticator-client-bundle's People

Contributors

micayael avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.