1000 search results

Autowiring & Service Deprecations

…want. That means, back in SecurityController, delete this line and add a new AuthenticationUtils $authenticationUtils argument. Done. The last spot is in UserController: we're using security.authentication.guard_handler. This time, let's guess the type-hint! Add a new argument: Guard... GuardAuthenticationHandler. That…

9:17
Load Balancer & Reverse Proxy Setup

…needs to be smart enough to read these headers, instead of the normal ones. Symfony doesn't do this automatically, because it could be a security risk. You need to configure it explicitly. Google for "Symfony reverse proxy". Ok! In our front controller - so app…

9:36
Composer & Cache Permissions

…to directory, mode to 0777 and recurse: true: On deploy, this will make sure that the directory exists and is set to 777. That's not the best option for security... but it should get things working! Deploy one more time: Type beefpass, deploy to…

7:46
Deploying Keys & Private Repos

… Why did I do this? Mostly, simplicity! Thanks to this, the private key will always exist. How bad of a security issue is this? Well, this key only gives you read-only access to the repository. And, if you were already able to download the…

8:40
Hot Module Replacement

…Origin set to *: Since our site is served on a different host than our assets... well really a different port... CORS security will prevent some requests from working. This header will allow those requests to be made. Phew! Restart the dev server one more time…

6:43
Launch a Cloud Instance!

…using the module is pretty simple! We're just going to give it a lot of info about the image we want, the security group to use, the region and so on. Add a new task called "Create an Instance". Use the ec2 module and…

9:43
How Symfony Builds the Container

…imports config.yml: And config.yml loads parameters.yml, security.yml and services.yml. Every file in the app/config directory - except the routing files - are being loaded by the container in order to provide services. In other words, all of these files have the…

6:42
62 lines | config/packages/security.yaml
security:
// ... lines 2 - 13
firewalls:
// ... lines 15 - 18
main:
// ... lines 20 - 32
login_throttling: true
// ... lines 34 - 62
See Code Block in Script
64 lines | config/packages/security.yaml
security:
// ... lines 2 - 13
firewalls:
// ... lines 15 - 18
main:
// ... lines 20 - 32
login_throttling:
max_attempts: 3
interval: '15 minutes'
// ... lines 36 - 64
See Code Block in Script
58 lines | config/packages/security.yaml
security:
// ... lines 2 - 43
role_hierarchy:
ROLE_ADMIN:
- ROLE_CAPTAIN
// ... lines 47 - 58
See Code Block in Script
54 lines | config/packages/security.yaml
security:
// ... lines 2 - 38
# Note: Only the *first* matching rule is applied
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
// ... lines 43 - 54
See Code Block in Script
58 lines | config/packages/security.yaml
security:
// ... lines 2 - 38
# Note: Only the *first* matching rule is applied
access_control:
- { path: ^/admin, roles: ROLE_ADMIN }
// ... lines 42 - 58
See Code Block in Script
54 lines | config/packages/security.yaml
security:
// ... lines 2 - 13
firewalls:
// ... lines 15 - 18
main:
// ... lines 20 - 30
remember_me: ~
// ... lines 32 - 54
See Code Block in Script
64 lines | config/packages/security.yaml
security:
// ... lines 2 - 9
enable_authenticator_manager: true
// ... lines 11 - 64
See Code Block in Script
63 lines | config/packages/security.yaml
security:
// ... lines 2 - 20
firewalls:
// ... lines 22 - 24
main:
// ... lines 26 - 27
custom_authenticator:
- App\Security\LoginFormAuthenticator
// ... lines 30 - 63
See Code Block in Script
52 lines | config/packages/security.yaml
security:
// ... lines 2 - 11
firewalls:
// ... lines 13 - 15
main:
// ... lines 17 - 24
access_token:
// ... lines 26 - 52
See Code Block in Script
52 lines | config/packages/security.yaml
security:
// ... lines 2 - 11
firewalls:
// ... lines 13 - 15
main:
// ... lines 17 - 24
access_token:
token_handler: App\Security\ApiTokenHandler
// ... lines 27 - 52
See Code Block in Script
56 lines | config/packages/security.yaml
security:
// ... lines 2 - 37
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
// ... lines 43 - 56
See Code Block in Script
56 lines | config/packages/security.yaml
security:
// ... lines 2 - 12
role_hierarchy:
ROLE_FULL_USER: [ROLE_USER_EDIT, ROLE_TREASURE_CREATE, ROLE_TREASURE_EDIT]
// ... lines 15 - 56
See Code Block in Script
50 lines | config/packages/security.yaml
security:
// ... lines 2 - 11
firewalls:
// ... lines 13 - 15
main:
// ... lines 17 - 22
logout:
path: app_logout
// ... lines 25 - 50
See Code Block in Script