Authentication: Who are you? Authorization: What can you do?
@adazejohnson281 Жыл бұрын
You are the best!!! How did you manage to explain this complex topic in such a way that even a 5-year-old would understand. Amazing!!!
@riddhibhardwaj27468 ай бұрын
Thanks a lot for the content,! For the first time I’m actually able to grasp the content and not just code blindly ! Great explaining and amazing content ! Very helpful
@WhiteWay-tx9qt Жыл бұрын
Bro that's coolest video i've ever seen, i've understood everything even if i'm not nature english speaker. You god of a teaching broooooooo!!!!!!!!
@Devivl4 ай бұрын
Thank you so much for the lesson, Teddy.
@yacinehammi3448 Жыл бұрын
did you linked to database already or something to be able to see it in database view layer? cause i don't know if you did that part or just skipped ?
@My0ldFr13ndАй бұрын
Hi. I don't know if you're still reading comments under this series but I've got a question You see, I've been working on app that has 2 types of users - employees and clients - that are stored in seperate tables, therefore they are seperate entities and use seperate models. For employees, I was planning to have 2 roles - a normal EMPLOYEE and ADMIN, while every client has a CLIENT role. I don't think it makes much sense to make a triple-join table between employees, clients and roles, so I wanted to ask if there's a way to automatically assign the role CLIENT to any user stored in the clients table, or should I just give in and make a join table with a role column, client column and employee column?
@Simple_Code99 Жыл бұрын
Thank you sir
@geosystems210611 ай бұрын
Database ?? I am guessing that there was some postgres configuration in the previous series.
@sagarkhatri79723 ай бұрын
this playlist is awesome, I wish you made these tutorials using jdk17 or newer version
@TeddySmithDev
3 ай бұрын
I’m prob going to remake this course so be sure to check back later
@kavinkumar6513 Жыл бұрын
But if role has many like it should be string like if user save roles means how to do
@mccayl58784 ай бұрын
Hi, is it better to use enum than class for roles?
@Anon-jz7iw4 ай бұрын
To get a better learning experience, do a 1.25x speed.
@guratete
Ай бұрын
I do it at 2x
@adedejionigbinde7709 Жыл бұрын
Hello, this is a really great tutorial! I was wondering if the roles could be an actual field in the User Entity or if is it always better to create a table for the roles
@daliborpetric8288
6 ай бұрын
better to create separate talbe
@deathmetalphysicist
3 ай бұрын
Users can have multiple roles, so a separate table is nice
@user-qi5iu5pl5k9 ай бұрын
Can I make some alternative in no SQL database?
@MaraGaaming Жыл бұрын
Hi Man, great tutorial! I was wondering cuz my teacher said that i can't use fetchType.EAGER in this Set roles but without that, i can't even authorize user in postman with 401 unauthorized, because i think roles for this user are not load. Do you have idea how to replace this EAGER fetch to something different?
@TeddySmithDev
Жыл бұрын
You do LAZY and when you need the roles you getRoles() and it will be EAGER when function executes.
@travahnetshisaulu31018 ай бұрын
I was struggling to connect my react to spring boot back-end with security, i wish you could make a video about it. i will also try to use the knowledge i gathered here to work it out.
@TeddySmithDev
8 ай бұрын
Gonna take a while but react + spring is def on my list
@TheQuancy10 ай бұрын
I wish there was one for a MongoDb database
@kamiikazeharch5674 Жыл бұрын
let's say that i've been creating two user with the same role (admin), is it correct to have duplicated role in the 'role' table ?
@TeddySmithDev
Жыл бұрын
Yes that is major reason for having many to many
@gosumarti55073 ай бұрын
Can we use ENUM for the User's roles instead of creating new classes and tables, wouldn't it be easier or it won't work with the ENUM?
@TeddySmithDev
3 ай бұрын
Sure Enum would actually be better idea
@gosumarti5507
3 ай бұрын
great, thanks!@@TeddySmithDev
@Anon-jz7iw4 ай бұрын
Why is it many to many? Is this because you're saying someone can have more than one role? The admin would have user and admin? Why not just do one to many role. where one user can only have one role. user can have user role. admin can have only admin role.
@TeddySmithDev
4 ай бұрын
Many-many is better for infinite combinations of roles. In .NET, roles are one-to-many so you could do it that way, but I don’t think you could have infinite combinations like a many to many since it can only tied to one entity. Also, all I saw in Java security roles were all many to many, so seemed like better choice.
@Anon-jz7iw
4 ай бұрын
@@TeddySmithDev Thank you for answering my question! I've been looking all over as to why this would be the case.
@user-qx6zy9df1v11 ай бұрын
@joincolumn i am getting errors cannot be a resolved type
Пікірлер: 33
Authentication: Who are you? Authorization: What can you do?
You are the best!!! How did you manage to explain this complex topic in such a way that even a 5-year-old would understand. Amazing!!!
Thanks a lot for the content,! For the first time I’m actually able to grasp the content and not just code blindly ! Great explaining and amazing content ! Very helpful
Bro that's coolest video i've ever seen, i've understood everything even if i'm not nature english speaker. You god of a teaching broooooooo!!!!!!!!
Thank you so much for the lesson, Teddy.
did you linked to database already or something to be able to see it in database view layer? cause i don't know if you did that part or just skipped ?
Hi. I don't know if you're still reading comments under this series but I've got a question You see, I've been working on app that has 2 types of users - employees and clients - that are stored in seperate tables, therefore they are seperate entities and use seperate models. For employees, I was planning to have 2 roles - a normal EMPLOYEE and ADMIN, while every client has a CLIENT role. I don't think it makes much sense to make a triple-join table between employees, clients and roles, so I wanted to ask if there's a way to automatically assign the role CLIENT to any user stored in the clients table, or should I just give in and make a join table with a role column, client column and employee column?
Thank you sir
Database ?? I am guessing that there was some postgres configuration in the previous series.
this playlist is awesome, I wish you made these tutorials using jdk17 or newer version
@TeddySmithDev
3 ай бұрын
I’m prob going to remake this course so be sure to check back later
But if role has many like it should be string like if user save roles means how to do
Hi, is it better to use enum than class for roles?
To get a better learning experience, do a 1.25x speed.
@guratete
Ай бұрын
I do it at 2x
Hello, this is a really great tutorial! I was wondering if the roles could be an actual field in the User Entity or if is it always better to create a table for the roles
@daliborpetric8288
6 ай бұрын
better to create separate talbe
@deathmetalphysicist
3 ай бұрын
Users can have multiple roles, so a separate table is nice
Can I make some alternative in no SQL database?
Hi Man, great tutorial! I was wondering cuz my teacher said that i can't use fetchType.EAGER in this Set roles but without that, i can't even authorize user in postman with 401 unauthorized, because i think roles for this user are not load. Do you have idea how to replace this EAGER fetch to something different?
@TeddySmithDev
Жыл бұрын
You do LAZY and when you need the roles you getRoles() and it will be EAGER when function executes.
I was struggling to connect my react to spring boot back-end with security, i wish you could make a video about it. i will also try to use the knowledge i gathered here to work it out.
@TeddySmithDev
8 ай бұрын
Gonna take a while but react + spring is def on my list
I wish there was one for a MongoDb database
let's say that i've been creating two user with the same role (admin), is it correct to have duplicated role in the 'role' table ?
@TeddySmithDev
Жыл бұрын
Yes that is major reason for having many to many
Can we use ENUM for the User's roles instead of creating new classes and tables, wouldn't it be easier or it won't work with the ENUM?
@TeddySmithDev
3 ай бұрын
Sure Enum would actually be better idea
@gosumarti5507
3 ай бұрын
great, thanks!@@TeddySmithDev
Why is it many to many? Is this because you're saying someone can have more than one role? The admin would have user and admin? Why not just do one to many role. where one user can only have one role. user can have user role. admin can have only admin role.
@TeddySmithDev
4 ай бұрын
Many-many is better for infinite combinations of roles. In .NET, roles are one-to-many so you could do it that way, but I don’t think you could have infinite combinations like a many to many since it can only tied to one entity. Also, all I saw in Java security roles were all many to many, so seemed like better choice.
@Anon-jz7iw
4 ай бұрын
@@TeddySmithDev Thank you for answering my question! I've been looking all over as to why this would be the case.
@joincolumn i am getting errors cannot be a resolved type