Sylius/tests/DataFixtures/ORM/authentication/api_administrator.yml
2016-08-10 14:17:12 +02:00

24 lines
783 B
YAML

Sylius\Bundle\ApiBundle\Model\Client:
oauth:
randomId: client_id
secret: secret
allowedGrantTypes: [password, access_token, refresh_token]
Sylius\Bundle\ApiBundle\Model\AccessToken:
oauth_access_token:
client: @oauth
user: @admin
token: SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ
Sylius\Bundle\ApiBundle\Model\RefreshToken:
oauth_refresh_token:
client: @oauth
user: @admin
token: SampleRefreshTokenODllODY4ZTQyOThlNWIyMjA1ZDhmZjE1ZDYyMGMwOTUxOWM2NGFmNGRjNjQ2NDBhMDVlNGZjMmQ0YzgyNDM2Ng
Sylius\Component\Core\Model\AdminUser:
admin:
plainPassword: sylius
roles: [ROLE_API_ACCESS]
enabled: true
username: api@sylius.com