ajgarlag/oidc-provider-bundle

Symfony bundle for OIDC provider.

dev-main 2025-07-03 13:03 UTC

This package is auto-updated.

Last update: 2025-07-03 13:03:42 UTC


README

Unit tests status Static analysis status Coding standards status Latest Stable Version

AjgarlagOidcProviderBundle is a Symfony bundle that integrates an OpenID Connect (OIDC) provider into Symfony applications, extending the capabilities of the league/oauth2-server-bundle to provides endpoints and utilities to implement a standards-compliant OIDC provider.

Quick Start

  1. Install the bundle using Composer:

    composer require ajgarlag/oidc-provider-bundle
  2. Setup the league/oauth2-server-bundle, which is required for this bundle to function properly. Follow the README file to complete the setup.

  3. To enable OIDC Discovery support, add the file config/routes/ajgarlag_oidc_provider.yaml:

    ajgarlag_oidc_provider:
        resource: '@AjgarlagOidcProviderBundle/config/routes.php'
        type: php
  4. Tweak the discovery configuration in your config/packages/ajgarlag_oidc_provider.yaml if needed. These are the default values:

    ajgarlag_oidc_provider:
        discovery:
            authorization_endpoint_route: 'oauth2_authorize'
            token_endpoint_route: 'oauth2_token'
            jwks_endpoint_route: 'oidc_jwks'
            response_types_supported: ['code', 'id_token', 'id_token token']

Documentation

TBD

License

See the LICENSE file for details