Skip to content

Instantly share code, notes, and snippets.

@arnolanglade
Last active August 29, 2015 14:24
Show Gist options
  • Save arnolanglade/abc2013d4bf7f9287713 to your computer and use it in GitHub Desktop.
Save arnolanglade/abc2013d4bf7f9287713 to your computer and use it in GitHub Desktop.
Basic authentication (Lazy mode : on)
security:
providers:
api_provider:
memory:
users:
user: { password: password, roles: 'ROLE_API' }
encoders:
Symfony\Component\Security\Core\User\User: plaintext
firewalls:
api:
pattern: ^/api
http_basic: ~
provider: api_provider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment