Skip to content

Add recipe for vinh0809it/keycloak-bundle - #2100

Open
vinh0809it wants to merge 1 commit into
symfony:mainfrom
vinh0809it:keycloak-bundle
Open

vinh0809it wants to merge 1 commit into
symfony:mainfrom
vinh0809it:keycloak-bundle

Conversation

@vinh0809it

Copy link
Copy Markdown
Q A
License MIT
Packagist https://packagist.org/packages/vinh0809it/keycloak-bundle

Recipe for vinh0809it/keycloak-bundle, a Keycloak integration for Symfony's security: a keycloak firewall authenticator over Symfony's OIDC token handler.

The recipe registers the bundle, adds config/packages/keycloak.yaml with the two values an app must provide (the realm URL and the audience of its API's tokens), and the KEYCLOAK_URL env var. An empty KEYCLOAK_URL leaves the realm unconfigured, so the app still boots before it is set. It does not touch security.yaml; the firewall snippet is a comment in the config file.

@symfony-recipes-bot
symfony-recipes-bot enabled auto-merge (squash) October 28, 2026 09:10
@symfony-recipes-bot

Copy link
Copy Markdown
Collaborator

Thanks for the PR 😍

How to test these changes in your application

  1. Define the SYMFONY_ENDPOINT environment variable:

    # On Unix-like (BSD, Linux and macOS)
    export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2100/index.json
    # On Windows
    SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2100/index.json
  2. Install the package(s) related to this recipe:

    composer req symfony/flex
    composer req 'vinh0809it/keycloak-bundle:^0.1'
  3. Don't forget to unset the SYMFONY_ENDPOINT environment variable when done:

    # On Unix-like (BSD, Linux and macOS)
    unset SYMFONY_ENDPOINT
    # On Windows
    SET SYMFONY_ENDPOINT=

Diff between recipe versions

In order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes.
I'm going keep this comment up to date with any updates of the attached patch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants