From 0b9cd781273b30cff1bc26b40b6340808d00e14f Mon Sep 17 00:00:00 2001 From: MatTheCat Date: Mon, 12 Apr 2021 14:42:03 +0200 Subject: [PATCH] Add recipe for FOSOAuthServerBundle --- .../1.6/config/packages/fos_oauth_server.yaml | 8 +++++ .../1.6/config/routes/fos_oauth_server.yaml | 5 +++ .../oauth-server-bundle/1.6/manifest.json | 9 ++++++ .../1.6/src/Entity/AccessToken.php | 31 +++++++++++++++++++ .../1.6/src/Entity/AuthCode.php | 31 +++++++++++++++++++ .../1.6/src/Entity/Client.php | 19 ++++++++++++ .../1.6/src/Entity/RefreshToken.php | 31 +++++++++++++++++++ 7 files changed, 134 insertions(+) create mode 100644 friendsofsymfony/oauth-server-bundle/1.6/config/packages/fos_oauth_server.yaml create mode 100644 friendsofsymfony/oauth-server-bundle/1.6/config/routes/fos_oauth_server.yaml create mode 100644 friendsofsymfony/oauth-server-bundle/1.6/manifest.json create mode 100644 friendsofsymfony/oauth-server-bundle/1.6/src/Entity/AccessToken.php create mode 100644 friendsofsymfony/oauth-server-bundle/1.6/src/Entity/AuthCode.php create mode 100644 friendsofsymfony/oauth-server-bundle/1.6/src/Entity/Client.php create mode 100644 friendsofsymfony/oauth-server-bundle/1.6/src/Entity/RefreshToken.php diff --git a/friendsofsymfony/oauth-server-bundle/1.6/config/packages/fos_oauth_server.yaml b/friendsofsymfony/oauth-server-bundle/1.6/config/packages/fos_oauth_server.yaml new file mode 100644 index 00000000..efb4e855 --- /dev/null +++ b/friendsofsymfony/oauth-server-bundle/1.6/config/packages/fos_oauth_server.yaml @@ -0,0 +1,8 @@ +# Read the documentation: https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/blob/master/Resources/doc/index.md#step-5-configure-fosoauthserverbundle +fos_oauth_server: + db_driver: orm + + client_class: App\Entity\Client + access_token_class: App\Entity\AccessToken + refresh_token_class: App\Entity\RefreshToken + auth_code_class: App\Entity\AuthCode diff --git a/friendsofsymfony/oauth-server-bundle/1.6/config/routes/fos_oauth_server.yaml b/friendsofsymfony/oauth-server-bundle/1.6/config/routes/fos_oauth_server.yaml new file mode 100644 index 00000000..f98bab0b --- /dev/null +++ b/friendsofsymfony/oauth-server-bundle/1.6/config/routes/fos_oauth_server.yaml @@ -0,0 +1,5 @@ +fos_oauth_server_token: + resource: "@FOSOAuthServerBundle/Resources/config/routing/token.xml" + +fos_oauth_server_authorize: + resource: "@FOSOAuthServerBundle/Resources/config/routing/authorize.xml" diff --git a/friendsofsymfony/oauth-server-bundle/1.6/manifest.json b/friendsofsymfony/oauth-server-bundle/1.6/manifest.json new file mode 100644 index 00000000..afa58fa4 --- /dev/null +++ b/friendsofsymfony/oauth-server-bundle/1.6/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "FOS\\OAuthServerBundle\\FOSOAuthServerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + } +} diff --git a/friendsofsymfony/oauth-server-bundle/1.6/src/Entity/AccessToken.php b/friendsofsymfony/oauth-server-bundle/1.6/src/Entity/AccessToken.php new file mode 100644 index 00000000..c95f6f0f --- /dev/null +++ b/friendsofsymfony/oauth-server-bundle/1.6/src/Entity/AccessToken.php @@ -0,0 +1,31 @@ +