Quick note for 6:55 _"Guarantee every user at least has ROLE_USER"_ doesn't mean that YOU have to guarantee it. That line itself, in the User class, guarantees it. So you don't have to store ROLE_USER in the database. You certainly can store it, but then Symfony's gonna duplicate it in memory, which only makes array_unique's job harder. :)
@GaryClarkeTech3 жыл бұрын
Yes..I don't do it for the users which are created later in the course. It was just do demostrate how a role would look in the database. Something other than ROLE_USER would probably have been a better example. That said..I appreciate your help Balázs 🤝
@soufwra23963 жыл бұрын
Watching your video helped me fix an auth bug on my deployed project ! Cheers
@GaryClarkeTech3 жыл бұрын
Love that
@johnfawcett35033 жыл бұрын
Nice tutorial, thanks Gary. Looking forward to the next part
@GaryClarkeTech3 жыл бұрын
Cheers John..it will be Tues 23rd
@adamyoussef68803 жыл бұрын
It's a gem!
@thornwebdesign3 жыл бұрын
Nice video. Videos about 'Saml' would be helpful
@GaryClarkeTech3 жыл бұрын
Cheers David..good suggestion. I'll keep it in mind.
@toufik40443 жыл бұрын
Hallo, thanks for your tutorial... How to prevent going back to the secured page after logout in symfony ?
@GaryClarkeTech3 жыл бұрын
You can add invalidate_session: true under the logout key in security.yaml
@dirkkuijer84403 жыл бұрын
Thnx to you it worked finally!
@pawecyrklaf47293 жыл бұрын
Amazing video :D
@GaryClarkeTech3 жыл бұрын
Cheers Paweł 👍
@tomatomov90612 жыл бұрын
So we basically didn't understand how to add lines under firewall. Just some autogenerated things
@alenjose11223 жыл бұрын
Thank you for the tutorials.....Can you please make a video on how to setup a login page manually and how to add session start and destroy features to it and all???....It would be helpful as I am a beginner.
@GaryClarkeTech3 жыл бұрын
Hi Alen...that's a good suggestion. I will include this in my learn OO PHP series some time in the future. Thank you.
@vjianu3 жыл бұрын
hi mate love your vids just starting with Symfony so a very good source of education, one thing I want to ask if you could do a video on how to implement a user auth with steamid that would be great , thanks for the awesome content
@GaryClarkeTech3 жыл бұрын
Thanks Vas..glad you find it helpful. Decent suggestion...think I'd need to do some learning myself first but I'll defo think about it!
@_vela78273 жыл бұрын
Thank you for sharing your knowledge, how would I customize the redirection after logout and if there are two ways to login, thank you
@GaryClarkeTech3 жыл бұрын
You're welcome. To change redirection after logout, you need to change the target key under the logout key in security.yaml logout: path: app_logout # where to redirect after logout target: app_login
@Popchansons3 жыл бұрын
Hi Gary, thank you very much for this tutorial. Do these videos deal with the "new" Authentication System that CAN be used now and WILL be used in Symfony 6? #enable_authenticator_manager
@GaryClarkeTech3 жыл бұрын
Hi Sebastian...that's a good question. I've been thinking about that and how to approach it. I wasn't sure whether to wait til 6 or not to cover it. There are even slight changes to the current system in 5.3 so it's a challenge to know what to record and when! I'll give it more thought.
@Popchansons3 жыл бұрын
@@GaryClarkeTech The tutorial ist good as it is. Maybe a single Video in a few months could help to show just the differences. I don't know, I'm just a beginner. Thanks again.
@shamshid3 жыл бұрын
@@GaryClarkeTech I believe since 5.3 newly created Symfony projects are generated using Symfony's Passport system.
@mosesegboh2 жыл бұрын
how can I get the Id of the currently logged in user?
@GaryClarkeTech2 жыл бұрын
Like this: symfony.com/doc/current/security.html#fetching-the-user-object
@younex1113 жыл бұрын
Great Job Gary Go Ahead just i have a proposition it would be very nice if you implement manager interface roles (Admin,Editor,User) and everyone of them has his privileges while the admin could assign and change roles hope its good idea to share have a nice day :)
@GaryClarkeTech3 жыл бұрын
Thanks Younes and good suggestion. I'll see what I can come up with 👍
@younex1113 жыл бұрын
@@GaryClarkeTech your welcome brother i really appreciate what you are doing and i respect you good bless you so im working now on the same thing there always lot of choices but i would like make it as a services or subscribers would much better and automatically to be reused in every project have a nice day brother
@younex1113 жыл бұрын
just i mess something if you have LinkedIn its my pleasure to share your tuto form my community
@GaryClarkeTech3 жыл бұрын
@@younex111 Sure Younes..that would be cool My LinkedIn is www.linkedin.com/in/gary-clarke-6a705312a/ I'm unable to upload this video there though becasue it's > 10 mins. Not sure if there's a way to link to YT
@younex1113 жыл бұрын
Great gary so you don't need to upload it just create a poste and share the link of the video on youtube that Will be awesome I can do it but I want people discover your Channel that would be better
@zenobikraweznick3 жыл бұрын
6:00 just stop it will you. Migrate colon ? I don't allow my colon to be migrated anywhere!!!