Skip to content

[2.1][Security] Fixed typo + some enhancement #2349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 30, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,34 @@ Each part will be explained in the next section.
iterations: 5000

# Example options/values for what a custom encoder might look like
Acme\Your\Class\Name:
algorithm: ~
ignore_case: false
encode_as_base64: true
iterations: 5000
id: ~
Acme\DemoBundle\Entity\User3:
id: my.encoder.id

providers: # Required
# Examples:
memory:
name: memory
users:
foo:
password: foo
roles: ROLE_USER
bar:
password: bar
roles: [ROLE_USER, ROLE_ADMIN]
entity:
my_in_memory_provider:
memory:
users:
foo:
password: foo
roles: ROLE_USER
bar:
password: bar
roles: [ROLE_USER, ROLE_ADMIN]

my_entity_provider:
entity:
class: SecurityBundle:User
property: username
class: SecurityBundle:User
property: username

# Example custom provider
some_custom_provider:
my_some_custom_provider:
id: ~

# Chain some providers
my_chain_provider:
chain:
providers: []
providers: [ my_in_memory_provider, my_entity_provider ]

firewalls: # Required
# Examples:
Expand Down