{"repo":"IDCI-Consulting/IDCIKeycloakSecurityBundle","free":true,"listed":false,"github":"https://github.com/IDCI-Consulting/IDCIKeycloakSecurityBundle","clone":"git clone https://github.com/IDCI-Consulting/IDCIKeycloakSecurityBundle.git","description":"Symfony bundle to easily setup security using Keycloak / OAuth","language":"PHP","stars":49,"topics":["keycloak","oauth2","symfony","symfony-bundle","php"],"license":null,"category":"auth-billing-email","readme_excerpt":"IDCI Keycloak Security Bundle ============================= This Symfony bundle is an alternative solution to FOSUserBundle, working with keycloak. - For Symfony 2/3/4 use version 1. - For Symfony 5 use version 2. - For Symfony 6 or + use version 3. Installation With composer: Configuration If you want to set up keycloak locally you can download it here and follow instructions from the official documentation. In case that you want to use keycloak in docker go directly to configuration for Docker. Bundle configuration Basic In case of you already have keycloak running locally on your machine or is running remotely but without proxy, here is the default configuration you should use: Docker If you want to use keycloak in docker you can base your stack on this sample. Here is a stack example configuration for docker swarm: Make sure that your php container in the container is attached to a network with keycloak, otherwise it will not be able to resolve \"http://keycloak:8080/auth\" and the public server url must be accessible through the port 80 because keycloak verify the issuer. NOTE: The keycloak api endpoint as change, so if you used an old version, add the /auth to you url: Route configuration Create a new file in to load pre configured bundle routes. This will add the following routes to your application: Symfony security configuration To link keycloak with symfony you must configure your application security file. Here is a simple configuration that restrict access to routes","default_branch":null,"files":null,"tree":[],"storefront":"/r/IDCI-Consulting","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/IDCI-Consulting/IDCIKeycloakSecurityBundle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}