mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
Create Flex endpoint
This commit is contained in:
+43
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"aliases": {
|
||||
"security": "symfony/security-bundle",
|
||||
"security-bundle": "symfony/security-bundle",
|
||||
"securitybundle": "symfony/security-bundle"
|
||||
},
|
||||
"recipes": {
|
||||
"symfony/security-bundle": [
|
||||
"3.3",
|
||||
"4.4",
|
||||
"5.1",
|
||||
"5.3",
|
||||
"6.0",
|
||||
"6.4",
|
||||
"7.4",
|
||||
"8.2"
|
||||
]
|
||||
},
|
||||
"recipe-conflicts": {
|
||||
"symfony/security-bundle": {
|
||||
"5.3": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
},
|
||||
"6.0": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
},
|
||||
"6.4": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"versions": [],
|
||||
"branch": "main",
|
||||
"is_contrib": false,
|
||||
"_links": {
|
||||
"repository": "github.com/symfony/recipes",
|
||||
"origin_template": "{package}:{version}@github.com/symfony/recipes:main",
|
||||
"recipe_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1570/{package_dotted}.{version}.json",
|
||||
"recipe_template_relative": "{package_dotted}.{version}.json",
|
||||
"archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1570/archived/{package_dotted}/{ref}.json",
|
||||
"archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/security-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/security.yaml": {
|
||||
"contents": [
|
||||
"security:",
|
||||
" # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers",
|
||||
" providers:",
|
||||
" users_in_memory: { memory: null }",
|
||||
" firewalls:",
|
||||
" dev:",
|
||||
" pattern: ^/(_(profiler|wdt)|css|images|js)/",
|
||||
" security: false",
|
||||
" main:",
|
||||
" anonymous: true",
|
||||
" provider: users_in_memory",
|
||||
"",
|
||||
" # activate different ways to authenticate",
|
||||
" # https://symfony.com/doc/current/security.html#firewalls-authentication",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security/impersonating_user.html",
|
||||
" # switch_user: true",
|
||||
"",
|
||||
" # Easy way to control access for large sections of your site",
|
||||
" # Note: Only the *first* access control that matches will be used",
|
||||
" access_control:",
|
||||
" # - { path: ^/admin, roles: ROLE_ADMIN }",
|
||||
" # - { path: ^/profile, roles: ROLE_USER }",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "38d658ce68375d66d2cddc88892af8f08701e6e7"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/security-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/security.yaml": {
|
||||
"contents": [
|
||||
"security:",
|
||||
" # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers",
|
||||
" providers:",
|
||||
" users_in_memory: { memory: null }",
|
||||
" firewalls:",
|
||||
" dev:",
|
||||
" pattern: ^/(_(profiler|wdt)|css|images|js)/",
|
||||
" security: false",
|
||||
" main:",
|
||||
" anonymous: lazy",
|
||||
" provider: users_in_memory",
|
||||
"",
|
||||
" # activate different ways to authenticate",
|
||||
" # https://symfony.com/doc/current/security.html#firewalls-authentication",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security/impersonating_user.html",
|
||||
" # switch_user: true",
|
||||
"",
|
||||
" # Easy way to control access for large sections of your site",
|
||||
" # Note: Only the *first* access control that matches will be used",
|
||||
" access_control:",
|
||||
" # - { path: ^/admin, roles: ROLE_ADMIN }",
|
||||
" # - { path: ^/profile, roles: ROLE_USER }",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "7b4408dc203049666fe23fabed23cbadc6d8440f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/security-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/security.yaml": {
|
||||
"contents": [
|
||||
"security:",
|
||||
" # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers",
|
||||
" providers:",
|
||||
" users_in_memory: { memory: null }",
|
||||
" firewalls:",
|
||||
" dev:",
|
||||
" pattern: ^/(_(profiler|wdt)|css|images|js)/",
|
||||
" security: false",
|
||||
" main:",
|
||||
" anonymous: true",
|
||||
" lazy: true",
|
||||
" provider: users_in_memory",
|
||||
"",
|
||||
" # activate different ways to authenticate",
|
||||
" # https://symfony.com/doc/current/security.html#firewalls-authentication",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security/impersonating_user.html",
|
||||
" # switch_user: true",
|
||||
"",
|
||||
" # Easy way to control access for large sections of your site",
|
||||
" # Note: Only the *first* access control that matches will be used",
|
||||
" access_control:",
|
||||
" # - { path: ^/admin, roles: ROLE_ADMIN }",
|
||||
" # - { path: ^/profile, roles: ROLE_USER }",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0a4bae19389d3b9cba1ca0102e3b2bccea724603"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/security-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/security.yaml": {
|
||||
"contents": [
|
||||
"security:",
|
||||
" enable_authenticator_manager: true",
|
||||
" # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords",
|
||||
" password_hashers:",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface: 'auto'",
|
||||
" # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider",
|
||||
" providers:",
|
||||
" users_in_memory: { memory: null }",
|
||||
" firewalls:",
|
||||
" dev:",
|
||||
" pattern: ^/(_(profiler|wdt)|css|images|js)/",
|
||||
" security: false",
|
||||
" main:",
|
||||
" lazy: true",
|
||||
" provider: users_in_memory",
|
||||
"",
|
||||
" # activate different ways to authenticate",
|
||||
" # https://symfony.com/doc/current/security.html#the-firewall",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security/impersonating_user.html",
|
||||
" # switch_user: true",
|
||||
"",
|
||||
" # Easy way to control access for large sections of your site",
|
||||
" # Note: Only the *first* access control that matches will be used",
|
||||
" access_control:",
|
||||
" # - { path: ^/admin, roles: ROLE_ADMIN }",
|
||||
" # - { path: ^/profile, roles: ROLE_USER }",
|
||||
"",
|
||||
"when@test:",
|
||||
" security:",
|
||||
" password_hashers:",
|
||||
" # By default, password hashers are resource intensive and take time. This is",
|
||||
" # important to generate secure password hashes. In tests however, secure hashes",
|
||||
" # are not important, waste resources and increase test times. The following",
|
||||
" # reduces the work factor to the lowest possible values.",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface:",
|
||||
" algorithm: auto",
|
||||
" cost: 4 # Lowest possible value for bcrypt",
|
||||
" time_cost: 3 # Lowest possible value for argon",
|
||||
" memory_cost: 10 # Lowest possible value for argon",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "98f1f2b0d635908c2b40f3675da2d23b1a069d30"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/security-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/security.yaml": {
|
||||
"contents": [
|
||||
"security:",
|
||||
" # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords",
|
||||
" password_hashers:",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface: 'auto'",
|
||||
" # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider",
|
||||
" providers:",
|
||||
" users_in_memory: { memory: null }",
|
||||
" firewalls:",
|
||||
" dev:",
|
||||
" pattern: ^/(_(profiler|wdt)|css|images|js)/",
|
||||
" security: false",
|
||||
" main:",
|
||||
" lazy: true",
|
||||
" provider: users_in_memory",
|
||||
"",
|
||||
" # activate different ways to authenticate",
|
||||
" # https://symfony.com/doc/current/security.html#the-firewall",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security/impersonating_user.html",
|
||||
" # switch_user: true",
|
||||
"",
|
||||
" # Easy way to control access for large sections of your site",
|
||||
" # Note: Only the *first* access control that matches will be used",
|
||||
" access_control:",
|
||||
" # - { path: ^/admin, roles: ROLE_ADMIN }",
|
||||
" # - { path: ^/profile, roles: ROLE_USER }",
|
||||
"",
|
||||
"when@test:",
|
||||
" security:",
|
||||
" password_hashers:",
|
||||
" # By default, password hashers are resource intensive and take time. This is",
|
||||
" # important to generate secure password hashes. In tests however, secure hashes",
|
||||
" # are not important, waste resources and increase test times. The following",
|
||||
" # reduces the work factor to the lowest possible values.",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface:",
|
||||
" algorithm: auto",
|
||||
" cost: 4 # Lowest possible value for bcrypt",
|
||||
" time_cost: 3 # Lowest possible value for argon",
|
||||
" memory_cost: 10 # Lowest possible value for argon",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "8a5b112826f7d3d5b07027f93786ae11a1c7de48"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/security-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/security.yaml": {
|
||||
"contents": [
|
||||
"security:",
|
||||
" # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords",
|
||||
" password_hashers:",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface: 'auto'",
|
||||
" # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider",
|
||||
" providers:",
|
||||
" users_in_memory: { memory: null }",
|
||||
" firewalls:",
|
||||
" dev:",
|
||||
" pattern: ^/(_(profiler|wdt)|css|images|js)/",
|
||||
" security: false",
|
||||
" main:",
|
||||
" lazy: true",
|
||||
" provider: users_in_memory",
|
||||
"",
|
||||
" # activate different ways to authenticate",
|
||||
" # https://symfony.com/doc/current/security.html#the-firewall",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security/impersonating_user.html",
|
||||
" # switch_user: true",
|
||||
"",
|
||||
" # Easy way to control access for large sections of your site",
|
||||
" # Note: Only the *first* access control that matches will be used",
|
||||
" access_control:",
|
||||
" # - { path: ^/admin, roles: ROLE_ADMIN }",
|
||||
" # - { path: ^/profile, roles: ROLE_USER }",
|
||||
"",
|
||||
"when@test:",
|
||||
" security:",
|
||||
" password_hashers:",
|
||||
" # By default, password hashers are resource intensive and take time. This is",
|
||||
" # important to generate secure password hashes. In tests however, secure hashes",
|
||||
" # are not important, waste resources and increase test times. The following",
|
||||
" # reduces the work factor to the lowest possible values.",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface:",
|
||||
" algorithm: auto",
|
||||
" cost: 4 # Lowest possible value for bcrypt",
|
||||
" time_cost: 3 # Lowest possible value for argon",
|
||||
" memory_cost: 10 # Lowest possible value for argon",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/security.yaml": {
|
||||
"contents": [
|
||||
"_security_logout:",
|
||||
" resource: security.route_loader.logout",
|
||||
" type: service",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "2ae08430db28c8eb4476605894296c82a642028f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/security-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/security.yaml": {
|
||||
"contents": [
|
||||
"security:",
|
||||
" # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords",
|
||||
" password_hashers:",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface: 'auto'",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider",
|
||||
" providers:",
|
||||
" users_in_memory: { memory: null }",
|
||||
"",
|
||||
" firewalls:",
|
||||
" dev:",
|
||||
" # Ensure dev tools and static assets are always allowed",
|
||||
" pattern: ^/(_profiler|_wdt|assets|build)/",
|
||||
" security: false",
|
||||
" main:",
|
||||
" lazy: true",
|
||||
" provider: users_in_memory",
|
||||
"",
|
||||
" # Activate different ways to authenticate:",
|
||||
" # https://symfony.com/doc/current/security.html#the-firewall",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security/impersonating_user.html",
|
||||
" # switch_user: true",
|
||||
"",
|
||||
" # Note: Only the *first* matching rule is applied",
|
||||
" access_control:",
|
||||
" # - { path: ^/admin, roles: ROLE_ADMIN }",
|
||||
" # - { path: ^/profile, roles: ROLE_USER }",
|
||||
"",
|
||||
"when@test:",
|
||||
" security:",
|
||||
" password_hashers:",
|
||||
" # Password hashers are resource-intensive by design to ensure security.",
|
||||
" # In tests, it's safe to reduce their cost to improve performance.",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface:",
|
||||
" algorithm: auto",
|
||||
" cost: 4 # Lowest possible value for bcrypt",
|
||||
" time_cost: 3 # Lowest possible value for argon",
|
||||
" memory_cost: 10 # Lowest possible value for argon",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/security.yaml": {
|
||||
"contents": [
|
||||
"_security_logout:",
|
||||
" resource: security.route_loader.logout",
|
||||
" type: service",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c42fee7802181cdd50f61b8622715829f5d2335c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/security-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/security.yaml": {
|
||||
"contents": [
|
||||
"security:",
|
||||
" # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords",
|
||||
" password_hashers:",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface: 'auto'",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider",
|
||||
" providers:",
|
||||
" users_in_memory: { memory: null }",
|
||||
"",
|
||||
" firewalls:",
|
||||
" dev:",
|
||||
" # Ensure dev tools and static assets are always allowed",
|
||||
" pattern: ^/(_profiler|_wdt|assets|build)/",
|
||||
" security: false",
|
||||
" main:",
|
||||
" lazy: true",
|
||||
" provider: users_in_memory",
|
||||
"",
|
||||
" # Activate different ways to authenticate:",
|
||||
" # https://symfony.com/doc/current/security.html#the-firewall",
|
||||
"",
|
||||
" # https://symfony.com/doc/current/security/impersonating_user.html",
|
||||
" # switch_user: true",
|
||||
"",
|
||||
" # Note: Only the *first* matching rule is applied",
|
||||
" access_control:",
|
||||
" # - { path: ^/admin, roles: ROLE_ADMIN }",
|
||||
" # - { path: ^/profile, roles: ROLE_USER }",
|
||||
"",
|
||||
"when@test:",
|
||||
" security:",
|
||||
" password_hashers:",
|
||||
" # Password hashers are resource-intensive by design to ensure security.",
|
||||
" # In tests, it's safe to reduce their cost to improve performance.",
|
||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface:",
|
||||
" algorithm: auto",
|
||||
" cost: 4 # Lowest possible value for bcrypt",
|
||||
" time_cost: 3 # Lowest possible value for argon",
|
||||
" memory_cost: 10 # Lowest possible value for argon",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/security.yaml": {
|
||||
"contents": [
|
||||
"_security_logout:",
|
||||
" resource: security.route_loader.logout",
|
||||
" type: service",
|
||||
"",
|
||||
"_security_oidc_login:",
|
||||
" resource: security.authenticator.oidc_login.route_loader",
|
||||
" type: service",
|
||||
"",
|
||||
"_security_protected_resource_metadata:",
|
||||
" resource: security.authenticator.access_token.route_loader",
|
||||
" type: service",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "422ec5fddd14eaf4c194793c439f5cf2a2141182"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user