diff --git a/RECIPES.md b/RECIPES.md index adb9880c..210d8391 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -52,6 +52,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [async-aws/async-aws-bundle](https://packagist.org/packages/async-aws/async-aws-bundle) | [1.0](../../../tree/main/async-aws/async-aws-bundle/1.0) | | [atlas/symfony](https://packagist.org/packages/atlas/symfony) | [1.0](../../../tree/main/atlas/symfony/1.0) | | [aws/aws-sdk-php-symfony](https://packagist.org/packages/aws/aws-sdk-php-symfony) | [1.3](../../../tree/main/aws/aws-sdk-php-symfony/1.3) | +| [axium/identity](https://packagist.org/packages/axium/identity) | [1.0](../../../tree/main/axium/identity/1.0) | | [aziz403/ux-datatable](https://packagist.org/packages/aziz403/ux-datatable) | [1.0](../../../tree/main/aziz403/ux-datatable/1.0) | | [aziz403/ux-zoom](https://packagist.org/packages/aziz403/ux-zoom) | [1.0](../../../tree/main/aziz403/ux-zoom/1.0) | | [bab/tested-routes-checker-bundle](https://packagist.org/packages/bab/tested-routes-checker-bundle) | [1.0](../../../tree/main/bab/tested-routes-checker-bundle/1.0) | diff --git a/archived/axium.identity/7120857f6e8e23a61f13ef48c8e1bf14af99ccb3.json b/archived/axium.identity/7120857f6e8e23a61f13ef48c8e1bf14af99ccb3.json new file mode 100644 index 00000000..f8c4efd3 --- /dev/null +++ b/archived/axium.identity/7120857f6e8e23a61f13ef48c8e1bf14af99ccb3.json @@ -0,0 +1,90 @@ +{ + "manifests": { + "axium/identity": { + "manifest": { + "bundles": { + "Axium\\Identity\\AxiumIdentityBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "AXIUM_IDENTITY_URL": "https://identity.example.com", + "AXIUM_CLIENT_ID": "your-client-id", + "AXIUM_CLIENT_SECRET": "your-client-secret" + }, + "post-install-output": [ + " AXIUM Identity Bundle ", + "", + "Le bundle a \u00e9t\u00e9 install\u00e9 avec succ\u00e8s.", + "Ajoutez les variables d'environnement suivantes dans votre fichier `.env` :", + "", + "```env", + "AXIUM_IDENTITY_URL=https://identity.example.com", + "AXIUM_CLIENT_ID=your-client-id", + "AXIUM_CLIENT_SECRET=your-client-secret", + "", + "## Configuration de s\u00e9curit\u00e9", + "", + "Copiez le fichier d'exemple de configuration de s\u00e9curit\u00e9 :", + "", + "```bash", + "cp config/packages/axium_identity_security.yaml.dist config/packages/security.yaml", + "", + "Puis adaptez la configuration selon les besoins de votre projet.", + "", + "Documentation:", + "https://gitlab.com/BenjaminYAO/axium-identity" + ] + }, + "files": { + "config/packages/axium_identity.yaml": { + "contents": [ + "axium_identity:", + " url: '%env(AXIUM_IDENTITY_URL)%'", + " client_id: '%env(AXIUM_CLIENT_ID)%'", + " client_secret: '%env(AXIUM_CLIENT_SECRET)%'", + " verify_ssl: false", + "" + ], + "executable": false + }, + "config/packages/axium_identity_security.yaml.dist": { + "contents": [ + "security:", + " password_hashers:", + " Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface: 'auto'", + "", + " providers:", + " app_user_provider:", + " entity:", + " class: App\\Entity\\User", + " property: email", + "", + " firewalls:", + " dev:", + " pattern: ^/(_profiler|_wdt|assets|build)/", + " security: false", + "", + " main:", + " lazy: true", + " provider: app_user_provider", + " custom_authenticator:", + " - Axium\\Identity\\Security\\IdentityAuthenticator", + " logout:", + " path: app_logout", + " target: app_login", + "", + " access_control:", + " - { path: ^/dashboard, roles: ROLE_USER }", + "" + ], + "executable": false + } + }, + "ref": "7120857f6e8e23a61f13ef48c8e1bf14af99ccb3" + } + } +} diff --git a/axium.identity.1.0.json b/axium.identity.1.0.json new file mode 100644 index 00000000..f8c4efd3 --- /dev/null +++ b/axium.identity.1.0.json @@ -0,0 +1,90 @@ +{ + "manifests": { + "axium/identity": { + "manifest": { + "bundles": { + "Axium\\Identity\\AxiumIdentityBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "AXIUM_IDENTITY_URL": "https://identity.example.com", + "AXIUM_CLIENT_ID": "your-client-id", + "AXIUM_CLIENT_SECRET": "your-client-secret" + }, + "post-install-output": [ + " AXIUM Identity Bundle ", + "", + "Le bundle a \u00e9t\u00e9 install\u00e9 avec succ\u00e8s.", + "Ajoutez les variables d'environnement suivantes dans votre fichier `.env` :", + "", + "```env", + "AXIUM_IDENTITY_URL=https://identity.example.com", + "AXIUM_CLIENT_ID=your-client-id", + "AXIUM_CLIENT_SECRET=your-client-secret", + "", + "## Configuration de s\u00e9curit\u00e9", + "", + "Copiez le fichier d'exemple de configuration de s\u00e9curit\u00e9 :", + "", + "```bash", + "cp config/packages/axium_identity_security.yaml.dist config/packages/security.yaml", + "", + "Puis adaptez la configuration selon les besoins de votre projet.", + "", + "Documentation:", + "https://gitlab.com/BenjaminYAO/axium-identity" + ] + }, + "files": { + "config/packages/axium_identity.yaml": { + "contents": [ + "axium_identity:", + " url: '%env(AXIUM_IDENTITY_URL)%'", + " client_id: '%env(AXIUM_CLIENT_ID)%'", + " client_secret: '%env(AXIUM_CLIENT_SECRET)%'", + " verify_ssl: false", + "" + ], + "executable": false + }, + "config/packages/axium_identity_security.yaml.dist": { + "contents": [ + "security:", + " password_hashers:", + " Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface: 'auto'", + "", + " providers:", + " app_user_provider:", + " entity:", + " class: App\\Entity\\User", + " property: email", + "", + " firewalls:", + " dev:", + " pattern: ^/(_profiler|_wdt|assets|build)/", + " security: false", + "", + " main:", + " lazy: true", + " provider: app_user_provider", + " custom_authenticator:", + " - Axium\\Identity\\Security\\IdentityAuthenticator", + " logout:", + " path: app_logout", + " target: app_login", + "", + " access_control:", + " - { path: ^/dashboard, roles: ROLE_USER }", + "" + ], + "executable": false + } + }, + "ref": "7120857f6e8e23a61f13ef48c8e1bf14af99ccb3" + } + } +} diff --git a/index.json b/index.json index efc1ab0d..2a97f863 100644 --- a/index.json +++ b/index.json @@ -151,6 +151,9 @@ "aws/aws-sdk-php-symfony": [ "1.3" ], + "axium/identity": [ + "1.0" + ], "aziz403/ux-datatable": [ "1.0" ],