mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 15:46:52 +03:00
commercetools bundle v0.4
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
commercetools:
|
||||
api:
|
||||
default_client: 'default'
|
||||
clients:
|
||||
default:
|
||||
client_id: '%env(CTP_CLIENT_ID)%'
|
||||
client_secret: '%env(CTP_CLIENT_SECRET)%'
|
||||
project: '%env(CTP_PROJECT_KEY)%'
|
||||
scope: '%env(CTP_SCOPE)%'
|
||||
oauth_url: '%env(CTP_AUTH_URL)%'
|
||||
api_url: '%env(CTP_API_URL)%'
|
||||
@@ -0,0 +1,22 @@
|
||||
security:
|
||||
providers:
|
||||
ctp:
|
||||
id: Commercetools\Symfony\CustomerBundle\Security\User\UserProvider
|
||||
access_control:
|
||||
- { path: /user/, roles: ROLE_USER }
|
||||
encoders:
|
||||
Symfony\Component\Security\Core\User\User: plaintext
|
||||
Commercetools\Symfony\CustomerBundle\Security\User\User: plaintext
|
||||
firewalls:
|
||||
main:
|
||||
anonymous: ~
|
||||
commercetools-login:
|
||||
login_path: login
|
||||
check_path: login_check
|
||||
logout:
|
||||
path: logout
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
default:
|
||||
anonymous: ~
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Commercetools\\Symfony\\CtpBundle\\CtpBundle": ["all"],
|
||||
"Commercetools\\Symfony\\CustomerBundle\\CustomerBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"CTP_CLIENT_ID": "<your-client-id>",
|
||||
"CTP_CLIENT_SECRET": "<your-client-secret>",
|
||||
"CTP_PROJECT_KEY": "<your-project-id>",
|
||||
"CTP_AUTH_URL": "https://auth.commercetools.com or https://auth.commercetools.co",
|
||||
"CTP_API_URL": "https://api.commercetools.com or https://api.commercetools.co",
|
||||
"CTP_SCOPES": "<your-desired-scopes>"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user