Giter Site home page Giter Site logo

keycloak-client-bundle's Introduction

Keycloak Client Bundle

Conector para keycloak para Symfony4

Instalación del bundle

Agregar al composer.json

    composer require "micayael/keycloak-client-bundle:~1.0.0"

Configuración del bundle

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

keycloak_client:
    keycloak_host: http://sso-sso-app-dev.apps.dncp.gov.py

    keycloak_user: SICP
    keycloak_secret: dc42717b-a354-477d-8822-16ee099aa2a0

    keycloak_token_uri: /auth/realms/SICP/protocol/openid-connect/token
    keycloak_rpt_uri: /auth/realms/SICP/authz/entitlement/SICP
    keycloak_permissions_uri: /auth/realms/SICP/protocol/openid-connect/token/introspect

    change_password_url: http://localhost:9095/cambiar-clave
    default_target_route: pliego.index

Publicación de assets

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

Importación de rutas en el archivo routes.yaml

keycloak_client:
    resource: "@KeycloakClientBundle/Resources/config/routing.yml"
    prefix: /

Configuración del security.yaml

    providers:
        keycloak:
            id: 'Micayael\Keycloak\ClientBundle\Security\User\AuthenticatorUserProvider'

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

            guard:
                authenticators:
                    - 'Micayael\Keycloak\ClientBundle\Security\LoginFormAuthenticator'

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

Documentación Extra

Referencias

keycloak-client-bundle's People

Contributors

micayael avatar

Watchers

 avatar  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.