Skip to content

Document in memory user extra fields #14928

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

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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
Next Next commit
Document in memory user extra fields
  • Loading branch information
noniagriconomie authored Feb 4, 2021
commit 90208bda6f21ab83b83f911d3f11cee95bef08c5
6 changes: 5 additions & 1 deletion security/user_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,11 @@ Now you can configure all the user information in ``config/packages/security.yam
memory:
users:
john_admin: { password: '$2y$13$jxGxc ... IuqDju', roles: ['ROLE_ADMIN'] }
jane_admin: { password: '$2y$13$PFi1I ... rGwXCZ', roles: ['ROLE_ADMIN', 'ROLE_SUPER_ADMIN'] }
jane_admin: { password: '$2y$13$PFi1I ... rGwXCZ', roles: ['ROLE_ADMIN', 'ROLE_SUPER_ADMIN'], extra_fields: {'name': 'Jane', 'age': 42}}

.. versionadded:: 5.3

The ``extra_fields`` support was introduced in Symfony 5.3.

.. caution::

Expand Down