Spring Boot Security | Role Base Authorization | Facebook group Management -Example | JavaTechie
Ғылым және технология
This tutorial will guide you how to implement Spring security Role base authentication and authorization with one realtime
( Facebook Group managementscenario
#javatechie #Security #SpringBoot
GitHub:
github.com/Java-Techie-jt/spr...
Blogs:
/ javatechie
Facebook:
/ 919464521471923
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community , you are free to use source code from above mentioned GitHub account
Пікірлер: 108
I admire your video's, thanks for teaching us freely, very few people do this.
one of the complete and best videos about spring security i have ever seen. as always you are outstanding
All your videos are superb sir. I cleared so many concepts from your videos. God bless you !!
One of the best video on spring-security. thank you
Started watching 😊
Thx for this it's much better than the other video. I was able to successfully complete it.
nice, I was waiting for this topic. keep it up .
You are making really requirement video thanks dude keep it up
Thanks for this awesome concept
super nice, well explained in detail information..!
excellent tutorial bro .... Thank You
This is nice video i am getting clear concept.
watching this at 3 in night & still not sleepy! Nice video :)
@Javatechie
3 жыл бұрын
Thanks Nilesh , hope you got the clarity 🙂
@nileshmishra3192
3 жыл бұрын
@@Javatechie Yes, it was great! Can you integrate a JWT into this project? It would be a complete project then on spring-security!
@Javatechie
3 жыл бұрын
Okay after part 2 video I will integrate with jwt
@nileshmishra3192
3 жыл бұрын
@@Javatechie thank you ❤️
great content as usual
Thank you, great explanation
Excellent Tutorial..
Pls Share part 2 for this... Thank this very useful ...
Good concept
tutorial was very helpful, thank you
Ur videos 🤣😂💕 amazing
Thank you bro, for valuable information.
great video
Super
Thank Yoou apne toh meri izzat bacha li
please make this project with separate user and role table.
U r the legend sir💥
@Javatechie
2 жыл бұрын
Thanks buddy
thank you sir
thnx buddy for this
waiting for your pending post Topic, thank you
@Javatechie
3 жыл бұрын
Which one can you mention please
Thank you so much sir ❤️ will be really happy if you give demonstration with this implementation of Authorization along with jwt. This video itself is so informative and one of the best in KZread. 😊❤️
Thanks bro
Thanks for the video. If explanation of annotations used for role based access used in controller class would have been provided.. it would have been great. Though overall I was able to understand.
Thank you very much. This is my second video that I watched in Java Techie. This is the way I wanted. I have only one problem, why did we use update query for set first ROLE_ADMIN ? We cannot do that in a real time application.
@Javatechie
2 жыл бұрын
Yes we shouldn't use that in realtime . For demo purpose I did this
Bhai ne sari spring boot ki videos upload ki h!!
Role based authorization using mongodb pls make a video sir using privileges permissions and roles
Basant real time noone uses Facebook. Is there any realtime like DB or LDAP since users could be internal and external that you can use for better reference. For every user the roles will be different.
Hi Thanks for your videos on Spring Boot, getting lot of things to learn. I need your guidance how to implement Authorization in JSP spring boot app. Login Authentication is done by third party API will be forwarded to my Spring Boot web app. I will be having roles in session. How to implement Authrization in jsp using Spring Security tag libs.
Sir I what to do when we have different roles in the same controller class and we don't want to use method level annotation as I am working with a huge codebase and we can't add method level role based authentication in each method and neither we can restrict the URI of the class to one role in the spring config file because in the same class we have the different roles, how to do it?
Hello JavaTechie and thank you for the videos. How can we add firstName and lastName to the USER entity/table? The USER entity will not extend Auditable either. Why are we unable to modify the USER entity/table?
@Javatechie
3 жыл бұрын
You can add N number of fields there is no restriction as such
Nice But table Id is not generated so you have to add @EnableJpaRepositories
How to do this using jwt, I have saw your that video and had implemented that. Can you please show this using jwt.
sir can you make video on java8 strams,lambda expressions and functional interfaces
@Javatechie
3 жыл бұрын
Already uploaded please checkout my java 8 playlist
Hi, is there a tutorial that you give this backend a front end of react js?
@Javatechie
2 жыл бұрын
No buddy
hello sir, please make how to do social logins with aws cognito and spring boot when you get time thank you
@Javatechie
3 жыл бұрын
Okay I will do this .but am not sure again whether my AWS account is active or not .I will check this
@hardikbehl2792
3 жыл бұрын
@@Javatechie ok sir
I have done everything accordingly the video but why mine is not working on postman but its not even showing error while running????????????????
@Javatechie
3 жыл бұрын
Please checkout my source code and compare
why the /user/join is not working of mine i have done everything as same as you have done ?
@Javatechie
3 жыл бұрын
What error you are getting
Hi Sir, I have done everything as per video. Even I have imported code from mentioned git link still I am getting 401 Unauthorised in postman.can you help me to resolve?
@Javatechie
Жыл бұрын
Can you share your GitHub
hie i have been following the tutorial, i'm having a 401 error with postman though...any leads
@Javatechie
2 жыл бұрын
Please follow same as I did in my security config class
Can we use second table for ROLE?
is the table is created previously? Or, it is autogenerated table?
@Javatechie
3 жыл бұрын
I created it manually
@pragyanshreedas23594
3 жыл бұрын
@@Javatechie authentication failed due to which there is no way to check authorization.
Hi sir, a very nice and detailed tutorial. Can you please a detailed tutorial on how to manage role based authorization along with JWT implementation.
@Javatechie
3 жыл бұрын
Already I covered jwt tutorial , in jwtUtils just change "add username, password and roles as part of token " while generating it .
@raghavgoel9577
3 жыл бұрын
@@Javatechie that's perfect sir. I really appreciate.
@raghavgoel9577
3 жыл бұрын
Sir, as we are passing only username as a subject while generating token as mentioned in your previous video, so, do we need to pass password and roles along with username? and in which data type: Single string seperated with coma, String array or HashMap?
@Javatechie
3 жыл бұрын
I will share the poc on this
@raghavgoel9577
3 жыл бұрын
@@Javatechie Any updates on sharing POC on this topic?
Hi I want to create angular file for this, how to access other api's in angular, i watched your previous angular video of 27 min login is working but other crud operations are not working please help...
@Javatechie
Жыл бұрын
For every request you need to perform authentication from frontend
@siddhantthorat3269
Жыл бұрын
@@Javatechie could you please recommend me. Some. Tutorial or youtube video or website link related to this. Such that it would be more clear doing it.??
@Javatechie
Жыл бұрын
I will check and update
@siddhantthorat3269
Жыл бұрын
@@Javatechie yes please and thank you
Sir ek bar spring security from basic bataiye ki kahan se start hota h program me jab request ati h
@Javatechie
3 жыл бұрын
Could you please check my spring security internal flow video. There I explained you from scratch with debug . How the flow works , where it start and how it processed
Instead of hasAuthority can we configure this from DB ?
@Javatechie
3 жыл бұрын
No you can't make that dynamic
Hi can we use properties file insted of database for authorization?
@Javatechie
2 жыл бұрын
Yes we can but it's not safe
could you add subtitle for this video, , many thanks ?
When will be your next tutorial about pending post features sir?
@Javatechie
3 жыл бұрын
This weekend most probably tomorrow you will see it .😊
@dsatzeesatty4940
3 жыл бұрын
I am waiting 😁 Thank you so much sir
@Javatechie
3 жыл бұрын
I will publish it soon 😊
But your block list is bigger than friend list on Facebook bro 😊🎉😂
WebSecurityConfigureAdapter is removed now, make another video
@Javatechie
Жыл бұрын
Please check This kzread.info/dash/bejne/hGtqtZKtltmZZto.html
how to write below return statement in Java 7 as java 7 is not supporting lambda expression... return user.map(GroupUserDetails::new) .orElseThrow(() -> new UsernameNotFoundException(username + " Not Found"));
@Javatechie
3 жыл бұрын
Manually you need to build Group Userdetails object by giving user object getter /setter
Was previous tutorial wrong for spring security?
@Javatechie
3 жыл бұрын
No it's not wrong but there is some error in code that's why I remake it with realtime scenario .
@ahmadfaraz3678
3 жыл бұрын
@@Javatechie But I did not face any error. That's why I was curious to know that.
@Javatechie
3 жыл бұрын
Ohh okay , but I got the error then I changed configuration and it works for me
could you please activate subtile
@Javatechie
Жыл бұрын
I will
or something like that
did same as u did but mine is showing at getRoles(), setRoles(),getUserName() and every other method from user.method() and also post.methods() are also showing error in UserController.java and PostController.java and also in GroupUserDetails.java like "the method setStatus(PostStatus) is undefined for the type post" please reply cause I have project to submit sir...please
@Javatechie
2 жыл бұрын
Please configure Lombok in your IDE that will resolve your issue
You are dictating what you are typing instead of explaining. Not the best way to teach for sure