1000 search results

Security

…Try logging in again. This time, we immediately get an error from COOP: The redirect URI provided is missing or does not match The redirect URI is a security measure that guarantees that nobody can use your client ID, which is public, to authorize users…

10:10
Security Voter

…you can pass that as the second argument. On a high level, we're asking the security system whether or not the current user is allowed to EDIT this DragonTreasure object. DragonTreasureVoter will make that decision. Copy this and paste it down for securityPostDenormalize: So…

6:13
Security Listener System & Csrf Protection

…All of this is powered by a really cool event system. After our authenticate() method, the security system dispatches several events... and there are a set of listeners to these events that do different work. We're going to see a full list of these…

6:40
Security Voter & Entity Permissions

…Also check to make sure that $subject is an instanceof User. That's it! Now, when the security system calls supports(), if we return true, then Symfony will call voteOnAttribute(). Our job there is simply to return true or false based on whether or not…

8:36
Security Events & Listeners

…executed before our controller. Listeners to this kernel.response event are called after our controller. These two events have... nothing to do with the security system. But it turns out that our firewall also dispatches several events during the authentication process. And, we can also…

4:00
Security & the User Class

…for now. We will add a password later, but we'll keep things extra simple to start. And... we're done! Awesome! This created a User entity, a Doctrine UserRepository for it, and updated the security.yaml file. Let's check out these changes next!

6:30
Security Upgrades

…on it, including getPassword(). But... this didn't always make sense. For example, some security systems have users that don't have passwords. For example, if your users log in via a single sign-on system, then there are no passwords to handle. Well, the…

7:59
Security Logic in the Validator

…our validator would block that. So... let's make it a little bit smarter. Because we already have the Security object autowired here, jump straight to check for the admin role: if $this->security->isGranted('ROLE_ADMIN'), then return. That will prevent the real owner…

6:46
Security: Handling User Access with Symfony the Right Way

…m going to play around here with some concepts. And I will present some, some of the functions and tools you can use for, from the Security component to handle user access specifically. We have some stages of user access, but before I enter that…

29:41
Security Setup

…But, I'll add a bit more: csrf_token_generator: security.csrf.token_manager. That will make sure the CSRF token - which is already added in the FOSUserBundle login template - is verified when we submit. As soon as we do that, go to /login and…

5:17
Security: Creating Roles and Role Hierarchies

…ROLE_USER') { } The only rule when creating a role is that it must start with ROLE_. If it doesn’t, you won’t get an error, but security won’t be enforced. Try it out by logging in as admin. But first, reload the fixtures…

2:50
Security Fundamentals

…things. There’s also some jedi magic I’ll show you later that makes custom authentication systems much easier. Authentication, Authorization and the Death Star¶ Security is two parts: authentication and authorization. Authentication, checks the user’s credentials. Its job is not to restrict access…

3:47
Course

Learn Symfony

Symfony Security: The Basics

…super-admins special powers — so you understand the core building blocks behind Symfony’s authorization system. By the end, you won’t just know which buttons to press — you’ll understand the fundamentals of how Symfony Security works, so you can confidently protect your apps.

4 videos
|
DTO & Security

…Well... if I spell "create" correctly, at least. We also had a Patch() operation and that also had a security option. This leveraged a custom voter to check if the current user can EDIT this treasure. More on that in a minute. And finally, we…

9:39
Field Security with Patch

…it doesn't matter where... say $dto->isPublished = $entity->getIsPublished(). Cool! We don't have any security yet... so when we run the tests: A few pass, but the original one still fails - testGetCollectionOfTreasures - because it's not expecting the isPublished to be there…

6:17
Symfony2 Security, Firewalls and Dinosaurs

Symfony2 Security, Firewalls and Dinosaurs¶ From Gerard Araujo: What is a typical/ideal bundle and firewall structure for symfony 2 for a project with the following basic requirements: frontend [ public ] frontend [ for logged in ] backend [ for admin ] ... and a few entities that are owned by…

4:19:01
Updating security, translation & validator Recipes

…more main Symfony recipes to update. Let's get to it! The next one is for security-bundle. Update it: composer recipes:install symfony/security-bundle --force -v And then run: git add -p Woh! It looks like it made a lot of changes! But..…

5:08
Symfony Security: Beautiful Authentication, Powerful Authorization

…with roles, voters and other good stuff: Making a User with the fancy new make:user command (ooOOOoo) Security & Firewall Fundamentals Creating a custom login form CSRF protection API token authentication system All about Guard authentication User Providers (why you need them, but don't…

33 videos
|
3:34:13
Symfony Security Voters (free cookies!)

Symfony Security Voters (free cookies!)¶ See also Voters have been updated in Symfony 2.8! Check out our updated tutorial about them: The new Voter Class. Hey guys! It’s getting a little colder in Michigan, Leanna and I are doing a little bit of…

14:28
Twig Security and IS_AUTHENTICATED_FULLY

Twig Security and IS_AUTHENTICATED_FULLY¶ Since logging out works, let’s add a link to actually do it. We already know logging out in Symfony is really easy. As long as the logout key is present under our firewall and we have a route…

2:41