From 5de741dd830f884310f8d16fea032a5770f8bd00 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 13 Oct 2024 12:21:24 +0200 Subject: [PATCH] ecphp/cas-bundle: add recipe for version 3.0 (#1687) --- .../3.0/config/packages/dev/cas_bundle.yaml | 24 +++++++++++++++++++ .../3.0/config/packages/dev/cas_security.yaml | 4 ++++ ecphp/cas-bundle/3.0/config/routes/cas.yaml | 3 +++ ecphp/cas-bundle/3.0/manifest.json | 10 ++++++++ 4 files changed, 41 insertions(+) create mode 100644 ecphp/cas-bundle/3.0/config/packages/dev/cas_bundle.yaml create mode 100644 ecphp/cas-bundle/3.0/config/packages/dev/cas_security.yaml create mode 100644 ecphp/cas-bundle/3.0/config/routes/cas.yaml create mode 100644 ecphp/cas-bundle/3.0/manifest.json diff --git a/ecphp/cas-bundle/3.0/config/packages/dev/cas_bundle.yaml b/ecphp/cas-bundle/3.0/config/packages/dev/cas_bundle.yaml new file mode 100644 index 00000000..5697bf90 --- /dev/null +++ b/ecphp/cas-bundle/3.0/config/packages/dev/cas_bundle.yaml @@ -0,0 +1,24 @@ +cas: + # Change the URL to your own CAS server + base_url: https://ecas.ec.europa.eu/cas + protocol: + login: + path: /login + default_parameters: + service: cas_bundle_homepage + serviceValidate: + path: /p3/serviceValidate + default_parameters: + format: JSON + #pgtUrl: cas_bundle_proxy_callback + logout: + path: /logout + default_parameters: + service: cas_bundle_homepage + proxy: + path: /proxy + proxyValidate: + path: /p3/proxyValidate + default_parameters: + format: JSON + #pgtUrl: cas_bundle_proxy_callback diff --git a/ecphp/cas-bundle/3.0/config/packages/dev/cas_security.yaml b/ecphp/cas-bundle/3.0/config/packages/dev/cas_security.yaml new file mode 100644 index 00000000..9595b42e --- /dev/null +++ b/ecphp/cas-bundle/3.0/config/packages/dev/cas_security.yaml @@ -0,0 +1,4 @@ +security: + providers: + cas: + id: EcPhp\CasBundle\Security\Core\User\CasUserProvider diff --git a/ecphp/cas-bundle/3.0/config/routes/cas.yaml b/ecphp/cas-bundle/3.0/config/routes/cas.yaml new file mode 100644 index 00000000..a8ec5e45 --- /dev/null +++ b/ecphp/cas-bundle/3.0/config/routes/cas.yaml @@ -0,0 +1,3 @@ +cas_bundle: + resource: "@CasBundle/Resources/config/routes/routes.php" + prefix: /cas diff --git a/ecphp/cas-bundle/3.0/manifest.json b/ecphp/cas-bundle/3.0/manifest.json new file mode 100644 index 00000000..33e525ce --- /dev/null +++ b/ecphp/cas-bundle/3.0/manifest.json @@ -0,0 +1,10 @@ +{ + "bundles": { + "EcPhp\\CasBundle\\CasBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}