Spring Boot Security Basics

  Рет қаралды 39,940

Defog Tech

Defog Tech

Күн бұрын

Пікірлер: 63
@DefogTech
@DefogTech 5 жыл бұрын
Sorry about rushing through the topics, there was lot to cover. Spring Security is a dense subject. I recommend pausing at every feature and trying to implement it. Let me know if you want me to cover any topic in-depth. I am also creating a hands-on coding video with same slides. Will try to publish it soon.
@SrishtiShukla9911
@SrishtiShukla9911 5 жыл бұрын
Thank You so much for such a great video.. Though the hands-on coding videos are way more pleasant, this also did it's job..
@thiyagarajanpalaniappan5294
@thiyagarajanpalaniappan5294 5 жыл бұрын
Please explain slown and clear
@nishiths9228
@nishiths9228 5 жыл бұрын
How about Core java videos especially on abstraction with real life scenario
@TARUNDASCS
@TARUNDASCS 5 жыл бұрын
Could you have a video on SAML authentication and a diagram of how the control flows goes
@kotiarva
@kotiarva 5 жыл бұрын
could you create videos on micro services, like how to choose resources, benefits compared to SOA like that?
@ILuvBilli
@ILuvBilli 5 жыл бұрын
OMG, In 14 mins u have covered every topic of spring security in a simple manner. Hats off to u
@yifeifeng7150
@yifeifeng7150 3 жыл бұрын
Timeline 0:00 Create a new Spring Boot project (via Initializr) 0:20 Create a sample controller 0:41 Spring Security's default log-in feature 2:17 Customize user and password (via property file) 2:40 Get authenticated user (2 ways) 3:43 In-Memory users 5:39 JDBC users 6:56 Customize Login Page 8:36 OAuth 2.0 Google Client (via property file) 9:43 REST API Authentication (Postman + Basic Auth) 12:23 URL based security 13:24 Authorization 14:24 Lot more
@dkypa
@dkypa 4 жыл бұрын
So far the best channel with full stuff and no fluff
@pannamodi9216
@pannamodi9216 5 жыл бұрын
Hi Buddy...you just nailed the java. I have gone through many of ur videos . All are awesome. Please make video on JMS with Spring. Also on AWS.
@SushilYadav7
@SushilYadav7 4 жыл бұрын
I’m watching almost all of your videos. I learn something from every video even if I think I know about it. Please keep creating more videos. Thanks.
@raushansingh9905
@raushansingh9905 5 жыл бұрын
This was the one I was looking for. Thanks buddy, you made my day
@palaniappanrm6277
@palaniappanrm6277 5 жыл бұрын
My first comment on youtube. Have watched all your videos. Just a few to go. This video is by far the best video I have ever seen.
@mostinho7
@mostinho7 5 жыл бұрын
2:50 can get the Principal object (the authenticated user) with the request 4:00 in memory authentication using WebSecurityConfigurerAdapter and implementing the configure method that takes an AuthenticationManagerBuilder. There are other configure methods in the WebSecirityConfigurerAdapter that don’t take an AuthenticationManagerBuilder, but take HttpSecurity for example. WebSecurityConfigurerAdapter is usually an inner class inside a WebMvcConfigurer class, but can also be its own class WebMvcConfigurer has methods you can override, such as customizing the ViewControllerRegister and adding a custom login page to it By default, you need to have a password encoder or else spring throws an exception. You can turn it off by putting a 5:04 prefix {noop} to the pass to tell spring don’t use password encoder (use the noop password encoder). This is for in-memory authentication only. 5:45 jdbcauthentication, needs a DataSource object, can also disable password encoding by doing .passwordEncoder(NoOpPasswordEncoder.getInstance()) AuthenticationManagerBuilder.jdbcAuthentication...needs to have two tables in your db schema: users table and authorities table Having a schema.sql file makes spring run the sql statements against the db on startup to create the tables 7:20 WebSecurityConfigurerAdapter configure method that takes HttpSecurity object. Can use the HttpSecurity to set the custom login page (along with addViewController function from WebMvcConfigurer) 9:00 oauth 9:50 rest api authentication Depending on the Accept header from the client, sprint can either send a 401 unauthorized or redirect the client to a login page with 302
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Thank You. Nice introduction on security.
@masum.v
@masum.v 4 жыл бұрын
In 14min video you just covered everything.. It's awesome man!! Thanks.. 😁😁😁
@ultimateagg
@ultimateagg 5 жыл бұрын
I never had such brilliant tutorials
@SomjitNag
@SomjitNag 5 жыл бұрын
This was the one I was waiting for !! Finally! Thank you! And given how dense and difficult spring security is, you did a marvelous job in making things so clear! Those who will complain that the video is rushed, haven't tried learning spring security by themselves! 😄 Compared to that headache, this is an absolute pleasure to go through!
@rajkumarsowna410
@rajkumarsowna410 4 жыл бұрын
Awesome dude. Very well explained. Voice and presentation are very clear.
@rajivraghu9857
@rajivraghu9857 5 жыл бұрын
A good brief info. Love Ur videos.😎
@wwhill8033
@wwhill8033 5 жыл бұрын
Excellent job, thanks
@veerapareddydushyanth2513
@veerapareddydushyanth2513 5 жыл бұрын
Thank u so much It was so nice to get a notification on every Sunday.... We r learning great 👍. Kudos to u
@vinaykumar-zq9ei
@vinaykumar-zq9ei 4 жыл бұрын
It is short but very informative video, Thanks :)
@pramodpatil6969
@pramodpatil6969 4 жыл бұрын
Great 👏
@TheLeony2
@TheLeony2 5 жыл бұрын
Great video, thank you! Waiting for more Spring videos😎
@naveens5809
@naveens5809 5 жыл бұрын
Great, simple & clear
@rishiraj2548
@rishiraj2548 2 жыл бұрын
👍👍 thanks
@RohitPal-lz1wf
@RohitPal-lz1wf 2 жыл бұрын
You are best
@sumitbasu5146
@sumitbasu5146 5 жыл бұрын
Really great video this is..Could you please make two separate videos with hands on coding 1)OAuth 2.0 and 2)JWT.
@ahahn928
@ahahn928 5 жыл бұрын
Yes please!
@Flower_withanshi
@Flower_withanshi 5 жыл бұрын
at 1:58 you have login as user but how come it shows as Hello there defog
@sharadsingh2856
@sharadsingh2856 Жыл бұрын
Great!. Pls bring up the cors
@JavaLovers
@JavaLovers 5 жыл бұрын
Thanks, please have more videos open ID connect + OAuth 2 where the final response of OAuth 2 would have Id token additionally so that in that case first request goes to openid for authentication and then jwt token would be generated along with user info and then same OAuth 2 will interpret it and return token then
@TripathiPiyush
@TripathiPiyush 5 жыл бұрын
Thank u so much.... Please make another videos for Authorization through AWS signature.
@sumitbasu5146
@sumitbasu5146 5 жыл бұрын
Thank you so much..salute😁😁
@arnavchannel2507
@arnavchannel2507 4 жыл бұрын
Hi ..pls make more vedio on micro services .. communication between micro services
@dkypa
@dkypa 4 жыл бұрын
Boss where are you.. long time no see.. do some videos on microservices please
@SomjitNag
@SomjitNag 5 жыл бұрын
Also, a suggestion, it would be great if you could collaborate with someone for angular/react (if not yourself) and show the full frontend to backend security/authorization flow. Especially role based auth, parts of which you touched at the very end of the video
@nasrullahsyed3663
@nasrullahsyed3663 5 жыл бұрын
Awesome ..!
@rohiniyadav5736
@rohiniyadav5736 4 жыл бұрын
Hi. Could you pls make one video for Docker and swagger too. Thanks for all ur videos. very helpful.
@ChetanSankhala
@ChetanSankhala 4 жыл бұрын
Strait forward and too the point.
@chungtran2059
@chungtran2059 3 жыл бұрын
Can you make Spring ACL for us, thanks
@jai2vn
@jai2vn 5 жыл бұрын
This is good, can you also do one with JWT token Authentication and Authorization using roles, will be helpful. I like the your flow.........
@updownftw
@updownftw 2 жыл бұрын
Hi Deepak, waiting for CORS and CSRF videos
@DefogTech
@DefogTech 2 жыл бұрын
Hi Sanket, I dont have plans at this moment to create CORS and CSRF videos. I am currently studying only distributed systems. Sorry to disappoint.
@tyapka
@tyapka 5 жыл бұрын
By the way, while watching the video I thought that declaring protected paths with allowed roles using just strings in security configuration class is very error prone. What if the path of your admin functions controller changes and you forget to change it in the configuration? It would be much better if there were some annotations on the controllers or endpoint themselves which would tell what the security model should be for that endpoint. Wondering if Spring Security has this functionality hidden somewhere deeply?
@DefogTech
@DefogTech 5 жыл бұрын
There is method based security feature, where you can use annotation on the method which you want to protect. www.baeldung.com/spring-security-method-security
@vijaybhatt8467
@vijaybhatt8467 2 жыл бұрын
spring.security.user.name=admin in latest versions of springboot
@rajatagrawal141
@rajatagrawal141 5 жыл бұрын
make tutorial on spring boot JWT+MySQL
@saurabh8638
@saurabh8638 4 жыл бұрын
Please have a website or something so that I can donate whatever is possible for me to promote such content.
@DefogTech
@DefogTech 4 жыл бұрын
Thank you sir... There's an applaud option in youtube for support. Will soon start memberships too. Thanks much 😊
@DhrumilShahDOTin
@DhrumilShahDOTin 4 жыл бұрын
Checkout 0.70X speed
@thiyagarajanpalaniappan5294
@thiyagarajanpalaniappan5294 5 жыл бұрын
Too fast your explaining this time. Comparing previous tutorial is so fast not able to follow. Please follow the same as previous.its helps me more
@DefogTech
@DefogTech 5 жыл бұрын
I agree. Sorry about that. There was a lot to cover and I wanted the video to be short. I recommend pausing at every feature and trying to implement it to help understand better. I am also creating a hands-on video, will publish it soon.
@thiyagarajanpalaniappan5294
@thiyagarajanpalaniappan5294 5 жыл бұрын
@@DefogTech please make video as very short also 4 to 5 mints around.if need pause. Ur video explain me lot to understand about concurrency. I expecting same. Thanks for your support.
What is a service mesh?
13:47
Defog Tech
Рет қаралды 156 М.
What is Spring Webflux and when to use it?
17:46
Defog Tech
Рет қаралды 248 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Spring Security Tutorial
1:06:32
Telusko
Рет қаралды 262 М.
Kerberos Authentication Explained | A deep dive
16:52
Destination Certification
Рет қаралды 368 М.
OAuth 2.0 explained with examples
10:03
ByteMonk
Рет қаралды 177 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 909 М.
Spring Boot - Testing basics
16:05
Defog Tech
Рет қаралды 76 М.
Introduction to CompletableFuture in Java 8
19:34
Defog Tech
Рет қаралды 332 М.
Circuit Breaker Pattern - Fault Tolerant Microservices
12:19
Defog Tech
Рет қаралды 191 М.
Spring Boot + Spring Security + JWT from scratch - Java Brains
39:29
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 224 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН