ajgarlag/openid-connect-provider-bundle

Symfony bundle for OpenID Connect provider.

dev-main 2025-07-07 10:07 UTC

This package is auto-updated.

Last update: 2025-07-07 10:07:59 UTC


README

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

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

Quick Start

  1. Install the bundle using Composer:

    composer require ajgarlag/openid-connect-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 OpenID Connect Discovery support, add the file config/routes/ajgarlag_openid_connect_provider.yaml:

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

    ajgarlag_openid_connect_provider:
        discovery:
            authorization_endpoint_route: 'oauth2_authorize'
            token_endpoint_route: 'oauth2_token'
            jwks_endpoint_route: 'openid_connect_jwks'

Documentation

TBD

License

See the LICENSE file for details