Symfony 5 Authentication Tutorial Part 1

  Рет қаралды 22,863

Gary Clarke

Gary Clarke

Күн бұрын

Пікірлер: 39
@balazs.spanyik
@balazs.spanyik 3 жыл бұрын
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. :)
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
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 🤝
@soufwra2396
@soufwra2396 3 жыл бұрын
Watching your video helped me fix an auth bug on my deployed project ! Cheers
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
Love that
@johnfawcett3503
@johnfawcett3503 3 жыл бұрын
Nice tutorial, thanks Gary. Looking forward to the next part
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
Cheers John..it will be Tues 23rd
@adamyoussef6880
@adamyoussef6880 3 жыл бұрын
It's a gem!
@thornwebdesign
@thornwebdesign 3 жыл бұрын
Nice video. Videos about 'Saml' would be helpful
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
Cheers David..good suggestion. I'll keep it in mind.
@toufik4044
@toufik4044 3 жыл бұрын
Hallo, thanks for your tutorial... How to prevent going back to the secured page after logout in symfony ?
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
You can add invalidate_session: true under the logout key in security.yaml
@dirkkuijer8440
@dirkkuijer8440 3 жыл бұрын
Thnx to you it worked finally!
@pawecyrklaf4729
@pawecyrklaf4729 3 жыл бұрын
Amazing video :D
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
Cheers Paweł 👍
@tomatomov9061
@tomatomov9061 2 жыл бұрын
So we basically didn't understand how to add lines under firewall. Just some autogenerated things
@alenjose1122
@alenjose1122 3 жыл бұрын
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.
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
Hi Alen...that's a good suggestion. I will include this in my learn OO PHP series some time in the future. Thank you.
@vjianu
@vjianu 3 жыл бұрын
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
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
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!
@_vela7827
@_vela7827 3 жыл бұрын
Thank you for sharing your knowledge, how would I customize the redirection after logout and if there are two ways to login, thank you
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
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
@Popchansons
@Popchansons 3 жыл бұрын
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
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
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.
@Popchansons
@Popchansons 3 жыл бұрын
@@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.
@shamshid
@shamshid 3 жыл бұрын
@@GaryClarkeTech I believe since 5.3 newly created Symfony projects are generated using Symfony's Passport system.
@mosesegboh
@mosesegboh 2 жыл бұрын
how can I get the Id of the currently logged in user?
@GaryClarkeTech
@GaryClarkeTech 2 жыл бұрын
Like this: symfony.com/doc/current/security.html#fetching-the-user-object
@younex111
@younex111 3 жыл бұрын
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 :)
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
Thanks Younes and good suggestion. I'll see what I can come up with 👍
@younex111
@younex111 3 жыл бұрын
@@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
@younex111
@younex111 3 жыл бұрын
just i mess something if you have LinkedIn its my pleasure to share your tuto form my community
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
@@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
@younex111
@younex111 3 жыл бұрын
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
@zenobikraweznick
@zenobikraweznick 3 жыл бұрын
6:00 just stop it will you. Migrate colon ? I don't allow my colon to be migrated anywhere!!!
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
😂 I don't blame you
Symfony 5 Authentication Tutorial Part 2
14:02
Gary Clarke
Рет қаралды 6 М.
Symfony Messenger plus RabbitMQ
11:32
Gary Clarke
Рет қаралды 17 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Session vs Token Authentication in 100 Seconds
2:18
Fireship
Рет қаралды 1,1 МЛН
CMD - Command Prompt Training for IT Professionals (Full Course)
3:18:32
Jobskillshare Skills-Based Platform
Рет қаралды 1,5 МЛН
How To Make Symfony 6 REST API
12:35
Binaryboxtuts
Рет қаралды 7 М.
СИЖУ БЕЗ ЕДЫ, ПЬЮ ОДНУ ВОДИЧКУ.
21:37
Быть Добру
Рет қаралды 79 М.
Лайфхак: Легально делать деньги
0:43
Карина Кросс #shorts
0:16
Dolly and Friends Shorts Cartoons
Рет қаралды 361 М.
для всей семьи
0:56
Стакановец
Рет қаралды 191 М.
Лайфхак: Легально делать деньги
0:43
Pixel 7 и 7 Pro с Face ID - лучше iPhone 14 Pro!
21:12
Rozetked
Рет қаралды 457 М.
BIP HOUSE  .бип хаус 🥰🏡  #shorts
0:13
bip_house
Рет қаралды 1,2 МЛН