commercetools bundle v0.4

This commit is contained in:
nikos.sotiropoulos
2019-03-12 14:02:10 +01:00
parent bce79fc5f0
commit fa6304b14e
3 changed files with 50 additions and 0 deletions
@@ -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>"
}
}