From 6d0e6b052adf580a6aa80e572a80255ee2973517 Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Mon, 7 Apr 2025 00:31:38 +0200 Subject: [PATCH 1/2] [league/oauth2-server-bundle] Add v0.11 recipe --- .../config/packages/league_oauth2_server.yaml | 17 +++++++++++++++++ .../config/routes/league_oauth2_server.yaml | 3 +++ league/oauth2-server-bundle/0.11/manifest.json | 15 +++++++++++++++ .../oauth2-server-bundle/0.11/post-install.txt | 8 ++++++++ 4 files changed, 43 insertions(+) create mode 100644 league/oauth2-server-bundle/0.11/config/packages/league_oauth2_server.yaml create mode 100644 league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.yaml create mode 100644 league/oauth2-server-bundle/0.11/manifest.json create mode 100644 league/oauth2-server-bundle/0.11/post-install.txt diff --git a/league/oauth2-server-bundle/0.11/config/packages/league_oauth2_server.yaml b/league/oauth2-server-bundle/0.11/config/packages/league_oauth2_server.yaml new file mode 100644 index 000000000..5f4f44476 --- /dev/null +++ b/league/oauth2-server-bundle/0.11/config/packages/league_oauth2_server.yaml @@ -0,0 +1,17 @@ +league_oauth2_server: + authorization_server: + private_key: '%env(resolve:OAUTH_PRIVATE_KEY)%' + private_key_passphrase: '%env(resolve:OAUTH_PASSPHRASE)%' + encryption_key: '%env(resolve:OAUTH_ENCRYPTION_KEY)%' + resource_server: + public_key: '%env(resolve:OAUTH_PUBLIC_KEY)%' + scopes: + available: ['email'] + default: ['email'] + persistence: + doctrine: null + +when@test: + league_oauth2_server: + persistence: + in_memory: null diff --git a/league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.yaml b/league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.yaml new file mode 100644 index 000000000..7e3daeef7 --- /dev/null +++ b/league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.yaml @@ -0,0 +1,3 @@ +oauth2_server: + resource: '@LeagueOAuth2ServerBundle/config/routes.php' + type: php diff --git a/league/oauth2-server-bundle/0.11/manifest.json b/league/oauth2-server-bundle/0.11/manifest.json new file mode 100644 index 000000000..ee510d402 --- /dev/null +++ b/league/oauth2-server-bundle/0.11/manifest.json @@ -0,0 +1,15 @@ +{ + "bundles": { + "League\\Bundle\\OAuth2ServerBundle\\LeagueOAuth2ServerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "OAUTH_PRIVATE_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/private.pem", + "OAUTH_PUBLIC_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/public.pem", + "OAUTH_PASSPHRASE": "%generate(secret)%", + "OAUTH_ENCRYPTION_KEY": "%generate(secret)%" + }, + "aliases": ["oauth2-server", "oauth-server"] +} diff --git a/league/oauth2-server-bundle/0.11/post-install.txt b/league/oauth2-server-bundle/0.11/post-install.txt new file mode 100644 index 000000000..1eba7a5a3 --- /dev/null +++ b/league/oauth2-server-bundle/0.11/post-install.txt @@ -0,0 +1,8 @@ + 1. Provide a key pair + * Generate a private/public key pair by running php bin/console league:oauth2-server:generate-keypair + + 2. Update the database schema + * Update your database schema so that bundle entities can be managed by Doctrine + + 3. Read the docs + * Read the documentation at https://github.com/thephpleague/oauth2-server-bundle/blob/master/docs/index.md From 8d486e32976bcdaa8c5fdf5598843d86908b1d82 Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Mon, 7 Apr 2025 14:00:36 +0200 Subject: [PATCH 2/2] Rename routing import key to league_oauth2_server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Antonio J. GarcĂ­a Lagar --- .../0.11/config/routes/league_oauth2_server.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.yaml b/league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.yaml index 7e3daeef7..38a4d1b93 100644 --- a/league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.yaml +++ b/league/oauth2-server-bundle/0.11/config/routes/league_oauth2_server.yaml @@ -1,3 +1,3 @@ -oauth2_server: +league_oauth2_server: resource: '@LeagueOAuth2ServerBundle/config/routes.php' type: php