Dig in Security with Symfony
summary
Symfony 3 security walks through concrete pieces: authentication requires a User, firewall, provider and encoder (example: bcrypt encoder), providers can load users from memory, DB, LDAP or social APIs, and custom UserProvider implements loadUserByUsername and refreshUser. Authorization uses an AccessDecisionManager with voters (tag services with security.voter), strategies affirmative/consensus/unanimous, and voters must be lightweight. New pieces include built-in LDAP support (internal) and Guard; deprecated APIs replace security.context with token_storage and authorization_checker.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 0:53Authentication basics
- 2:03Key authentication concepts
- 4:11Firewall configuration
- 5:14User provider explained
- 7:42Password encoder setup
- 9:49Authentication flow summary
- 11:13Authorization in Symfony
- 12:58Access decision manager
- 14:47Voter configuration
- 16:13Decision strategies
- 19:11Using isGranted method
- 20:14New Symfony security components
- 21:40Deprecations and changes
- 23:09ACL component update
