Spring Security Tutorial - [NEW] [2023]

  Рет қаралды 258,058

Amigoscode

Amigoscode

Күн бұрын

Spring Security is a powerful and popular framework for securing Java applications. In this video, we'll show you how to get started with Spring Security, by creating a simple authentication system using basic auth and JWT.
👉🏿 Subscribe to ‪@BoualiAli‬ channel - / @boualiali
Don't Forget to
===========================================
💯 Subscribe to Amigoscode - bit.ly/2HpF5V8
💯 Courses Available for free here - amigoscode.com/courses
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
⭐ Table Of Contents ⭐
===========================================
00:00 - Intro
01:34 - Guest Course Intro
03:15 - Nelson Course Intro
04:08 - Bootstrap app
06:03 - Create API
10:23 - Install Spring Security
14:33 - Explain form login
16:37 - Explain basic authentication
18:22 - Implement basic authentication
22:07 - Implement basic authentication
25:49 - Explain JWT authentication
31:10 - Implement JWT authentication filter
45:34 - Implement JWT utils class and finalise the filter
51:16 - Tell Spring to use the JWT filter
53:54 - Implement userDetailsService
01:00:46 - Add the authenticationProvider bean
01:05:56 - Add session management creation policy
01:07:38 - Implement Authentication controller
01:16:32 - Improve the code
01:20:44 - Testing the application
01:29:48 - Outro
#springsecurity #springboot #oauth2
🙊 Here are the goods for all my videos video 🙊
► Recommended Books
===========================================
- Clean Code - amzn.to/2UGDPlX
- HTTP: The Definitive Guide - amzn.to/2JDVi8s
- Clean Architecture - amzn.to/2xOBNXW
► Computer and Monitor
===========================================
- New Apple MacBook Pro - amzn.to/3464Mmn
- Dell 27 INCH Ultrasharp U2719D Monitor - amzn.to/2xM3nW1
- Double Arm Stand Desk Mount - amzn.to/3aYKKfs
- USB C Hub Multiport Adapter - amzn.to/2Jz7NlL
► Camera Gear
=============================================
- Sony ILCE7M3B Full Frame Mirrorless Camera - amzn.to/346QIJn
- Sigma 16 mm F1.4 DC DN - amzn.to/2wbic3Q
- Sigma 33B965 30 mm F1.4 DC DC - amzn.to/39G37Fd
► IDE & Tools I use for coding 💻 🎒
===========================================
- ITerm
- VsCode
- GoLand
- IntelliJ Ultimate
- Sublime
P.S
===========================================
💯 Don't forget to subscribe | bit.ly/2HpF5V8
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
💯 Follow me on Instagram | bit.ly/2TSkA9w
❤️ Thanks for watching
#springsecurity #springboot #amigoscode

Пікірлер: 458
@Aqwsaful
@Aqwsaful Жыл бұрын
Thank you guys! Apart from 31:00 and 45:00 time interval, all other explanation was very good. Keep on going !!! Your videos are really helpful and always up-to-date.
@user-cf9ir4gw2c
@user-cf9ir4gw2c 11 ай бұрын
Audio seems to be out of sync and/or there is popup/app(browser?) window that can't be seen.
@soheilsarvghadi4406
@soheilsarvghadi4406 Жыл бұрын
Hello Firstly, thank you for the great content as always And there is a problem with the recorded video The screen that the code is being written in is freezed and it updates after couple of seconds which actually prevents the viewer to see the changes that are being made Could you please tend this problem Thanks And again thank you for the good content 👍✨
@simonceballosjaramillo4040
@simonceballosjaramillo4040 Жыл бұрын
Yeah!, i'm having the same problem!
@dennisdan5324
@dennisdan5324 Жыл бұрын
yeah. same problem here too. I couldn't follow the progress of the tutorial (which was sad).
@eshantorovich
@eshantorovich Жыл бұрын
The filter method is at 45:35. It's good to open this moment in another window to understand what's happening. Works for me :)
@kurzgefasst2816
@kurzgefasst2816 Жыл бұрын
I am sure nobody watched the video before they published it, and I am sure it's not KZfaq's fault, but you will not see him commenting on this kind of comments where some problems accured. I am pretty salty right now for some basic problems that could be prevented so easily. Too much afford I guess. And this dude just wrote down some code without explaing some major parts but anyway, maybe there is a source where you can get the code you couldn't see when the video was lagging? No there is not, he doesn't even provide the code. Can't take Amigoscode serious anymore, our amigo is only caring for his courses on his website.
@adesuyiololade9062
@adesuyiololade9062 Жыл бұрын
@@kurzgefasst2816 you are not serious at all
@caisantangyi
@caisantangyi Жыл бұрын
I just watched the old version. Great timing for a refresher for Spring Boot 3. It would be nice to cover OAuth2 with identity providers like Okta, Auth0 or AWS coginitio.
@x2TruNation
@x2TruNation Жыл бұрын
Definitely need something on AWS Cognito, there's barely anything out there for it at the moment when it comes to Spring Security.
@Jhonfreddy15
@Jhonfreddy15 Жыл бұрын
Don’t forget about Keycloak
@amigoscode
@amigoscode Жыл бұрын
Will do for sure
@fipabrate
@fipabrate Жыл бұрын
Keycloak is also nice, and it's open source
@mailtoharutyunyan
@mailtoharutyunyan Жыл бұрын
@@amigoscode Also will buy the keycloak course if it's will be )) Thanks for best tutorials.
@paulnzioki8782
@paulnzioki8782 Жыл бұрын
What a tutorial! I used Spring boot 3 and found myself having to replace the deprecated APIs. What a lesson that was 😄. Figured out some stuff along the way. Thank you @Amigoscode and @BoualiAli for the good work.
@edubinatti_
@edubinatti_ Жыл бұрын
Thanks for the video, but in the part "Implement JWT authentication filter" between minutes 31:00 and 44:00 there is a problem, you can't see what happens on the screen
@p...p
@p...p Жыл бұрын
yes audio and video is out of sync
@vireakms7626
@vireakms7626 Жыл бұрын
i was thinking my connection problem
@stone8905
@stone8905 Жыл бұрын
I thought it was only to me
@congdatt
@congdatt Жыл бұрын
me too, bro =((
@angela.5852
@angela.5852 Ай бұрын
Amigoscode made good videos, but this is the worse. Bad explanation and some code magically appears.
@anthonytejada7951
@anthonytejada7951 11 ай бұрын
Thank you for the updated video on spring security 6. Spring can be very complex at times, but reading documentation and seeing your KZfaq videos helps make it clearer everyday.
@AshrafZaman
@AshrafZaman Жыл бұрын
Useful stuff, but the video lagged behind the audio for the entire "Implement JWT authentication filter" chapter. I wasn't able to follow this most crucial part, which kind of killed the fun. Notes for fellow viewers: 1. You might get warnings from the IDE saying "Method annotated with @Bean is called directly. Use dependency injection instead." Annotating the SecurityConfig class with @Configuration will resolve the issue. 2. I used Spring Boot 3.0.0 (which was available when this video was premiered), and had to make several changes in the securityFilterChain. - authorizeRequests method is deprecated, you should use authorizeHttpRequests instead - antMatchers method has been removed, so I used securityMatcher method. BUT with securityMatcher you specify which path patterns you want to INCLUDE for "authentication"; which is the opposite of antMatcher( ).permitAll( ) approach. In my code I set up everything under "/api/**" to be authenticated, and moved the AuthenticationController outside of it. This way I can access the "/authenticate" endpoint to obtain the JWT token, and then use the token to access endpoints under "/api/v1/...".
@barnabastyav3575
@barnabastyav3575 Жыл бұрын
Thank you Nelson and Bouali Ali ,what a great teacher, for putting out this content for us to learn from, i deeply appreciate this ,I also want to point out that at beginning of the implementation of jwt the video was static and not in syn with the audio ,it will be appreciated if something is done about it. Great thanks.
@Shadow_icaro
@Shadow_icaro Жыл бұрын
Hello, Thanks in advance for your efforts in making this type of videos, they're very usefull. I'm working with spring 3.0.2 and to follow your steps I have to add a @Configuration annotation on the 21:32, to the SecurityConfig class. Keep the good work!
@okumujustine
@okumujustine Жыл бұрын
So helpful. Nice, and thank you.
@zakharbondarev7814
@zakharbondarev7814 Жыл бұрын
Thank man. For two hours I have been trying to find problem.
@leo-kwo
@leo-kwo Жыл бұрын
Thank you! Have a good day!
@nicotine2580
@nicotine2580 Жыл бұрын
Thank you
@vamsikrishnahanumalasetty6131
@vamsikrishnahanumalasetty6131 Жыл бұрын
Thanks man!!
@dmitrys7170
@dmitrys7170 Жыл бұрын
Thx! There is almost no information on another equally interesting but more complex area - domain object security (ACL). It would be great if you could explain this topic in detail in some future video!
@tanomanual
@tanomanual Жыл бұрын
your videos are amazing, thanks for sharing your knowledge!
@olaoluwaalli8603
@olaoluwaalli8603 Жыл бұрын
please add oauth2 and security with authorization servers
@Runnable19
@Runnable19 Жыл бұрын
Thank you so much for sharing this amazing video! It was extremely informative and well-presented. I would greatly appreciate it if you could provide a link to the source code so I can learn more about the project. Thank you again for your time and effort in creating this valuable resource!
@HENN3H
@HENN3H Жыл бұрын
At 45:48 you create a Utils class in the background and say that this class should be easy to find online. In stead of having people look themselves, could you refer to the exact resource you are using? This saves a lot of time.
@camomster
@camomster Жыл бұрын
github.com/koushikkothagal/spring-security-jwt/blob/master/src/main/java/io/javabrains/springsecurityjwt/util/JwtUtil.java
@amarprongs7897
@amarprongs7897 Жыл бұрын
A decent effort. I usually like your teaching since that is very clear and you feel like you understand why the code is written the way it is. But it didn’t feel the same in this video. It looked more like he was explaining his thought process while writing a code rather than teaching. So, I feel I know what is written but not why. Truly speaking I might have to watch some other video to understand it better But a big shout out to your channel. All the other videos which you had done yourself are really good and very helpful. Thank you for all that you are doing
@-Engineering01-
@-Engineering01- Жыл бұрын
Thank you for these great videos very appreciated!
@michozaurus
@michozaurus Жыл бұрын
Great tutorial, but I actually needed to add a @Configuration annotaion in the SecurityConfig class for it to work
@JoaoPedro-wb6tb
@JoaoPedro-wb6tb Жыл бұрын
genio reverencia 3x
@simonceballosjaramillo4040
@simonceballosjaramillo4040 Жыл бұрын
Thanks for the tutorial :). Could you please fix the problem which appears between minutes 31:00 and 44:00. It seems the screen freezes :(
@softwaretestinglearninghub
@softwaretestinglearninghub Жыл бұрын
great coverage, thank you!
@mosesmaned2151
@mosesmaned2151 5 ай бұрын
so far you have provided me with much of the knowledge related to spring boot for sure keep on please you are super amazing guy when it comes to springboot
@MadaAdrian
@MadaAdrian Жыл бұрын
Great tutorial, just an advice, it would be greater if you go through the code with debugger to see exactly what behave should we expect
@mariogamer86
@mariogamer86 Жыл бұрын
Thanks a Lot for the content. I am learning Spring a lot with your channel 🤗🙌
@adesuyiololade9062
@adesuyiololade9062 Жыл бұрын
pls do you have the source code? After following the video, im encountering unauthorized error in my postman
@Sheikhhamiz
@Sheikhhamiz 9 ай бұрын
@@adesuyiololade9062 I have source code jwt implementation
@valmirknasel
@valmirknasel Жыл бұрын
Excellent video! In the part of JWT implementation (34:00 until 44:00), has a little problem and some parts do not appear on the video or it's just for me? Anyone else?
@MultiCrashcar
@MultiCrashcar Жыл бұрын
I have the same problem, 35:55 he uses a const AUTHORIZATION but i don´t know where it comes from! My IDE not recognizes it :( and before he hadn´t created this const
@Yoshiimiitsu
@Yoshiimiitsu Жыл бұрын
@@MultiCrashcar import static org.springframework.http.HttpHeaders.AUTHORIZATION;
@MultiCrashcar
@MultiCrashcar Жыл бұрын
@@Yoshiimiitsu Thank you Mariusz!!
@habetazaryan9945
@habetazaryan9945 Жыл бұрын
import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Component; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.function.Function; @Component public class JwtUtils { private String jwtSigninKey = "secret"; public String extractUsername(String token) { return extractClaim(token, Claims::getSubject); } public Date extractExpiration(String token) { return extractClaim(token, Claims::getExpiration); } public boolean hasClaim(String token, String claimName) { final Claims claims = extractAllClaims(token); return claims.get(claimName) != null; } public T extractClaim(String token, Function claimsResolver) { final Claims claims = extractAllClaims(token); return claimsResolver.apply(claims); } private Claims extractAllClaims(String token) { return Jwts.parser().setSigningKey(jwtSigninKey).parseClaimsJws(token).getBody(); } private Boolean isTokenExpired(String token) { return extractExpiration(token).before(new Date()); } public String generateToken(UserDetails userDetails) { Map claims = new HashMap(); return createToken(claims, userDetails); } public String generateToken(UserDetails userDetails, Map claims) { // return createToken(claims, userDetails); } private String createToken(Map claims, UserDetails userDetails) { return Jwts.builder().setClaims(claims).setSubject(userDetails.getUsername()).claim("authorities", userDetails.getAuthorities()).setIssuedAt(new Date(System.currentTimeMillis())).setExpiration(new Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(24))).signWith(SignatureAlgorithm.HS256, jwtSigninKey).compact(); } public Boolean isTokenValid(String token, UserDetails userDetails) { final String username = extractUsername(token); return (username.equals(userDetails.getUsername()) && !isTokenExpired(token)); } }
@zerocoolbutstill
@zerocoolbutstill Жыл бұрын
@@MultiCrashcar Thanks mate!
@davidbaba6885
@davidbaba6885 Жыл бұрын
Thanks Nelson, very timely.
@JITHINMATHEW-en1ot
@JITHINMATHEW-en1ot Жыл бұрын
Hello First of all thank you for uploading the great content video at the right time. I watched the old video didn't understand this was amazing....
@user-ku8qb1rn1g
@user-ku8qb1rn1g Жыл бұрын
Great job! Thank you!
@CarlosSaltos
@CarlosSaltos Жыл бұрын
Great, thanks for sharing !! 👍😎
@feyselahmed4581
@feyselahmed4581 Жыл бұрын
Ali is the best. I like his lectures so much!
@magadiflo-dev
@magadiflo-dev Жыл бұрын
With subtitles enabled please, for your Spanish audience, your courses are great, a hug
@oscarvarela4196
@oscarvarela4196 Жыл бұрын
please!!
@user-st2fj8rt7v
@user-st2fj8rt7v Жыл бұрын
Hey Amigos, very thank you for new video - its very VERY cool
@adesuyiololade9062
@adesuyiololade9062 Жыл бұрын
pls do you have the source code? After following the video, im encountering unauthorized error in my postman
@Zlatescu90
@Zlatescu90 Жыл бұрын
Great explanation! Thanks!
@rezaru2000
@rezaru2000 Ай бұрын
Excellent! thanks for the to the point explanation
@mustafaali3741
@mustafaali3741 Жыл бұрын
Thank you for doing this! In the real-world application, we would have at least 4 microservices talking to each other: 1- Client (ReactJS, AngularJS, Postman) 2- Api Gateway 3- OAuth-authorization-server 4- OAuth-resource-server Therefore, we need it relative enough to today's needs 😊.
@Jehiiiin
@Jehiiiin Жыл бұрын
السلام عليكم Is there any possibility you can do a video about securing the Gateway for a microservice project and thank you ❤️
@NamVu-xb8xb
@NamVu-xb8xb Жыл бұрын
Thank you very much for your course. And it would be very helpful if you can post the source code of this project for audience!!
@lawrencechan5010
@lawrencechan5010 Жыл бұрын
Hi, nice guides to the intented content. Was wondering if you will be doing spring security with unit testing to integration testing in future. It will be great if you doing that. As till now I'm always struggling on those. Especially on the testing password encoding, etc..
@dangquyit
@dangquyit Жыл бұрын
Thank you. I'm from Vietnam with love
@TalentShowcaseHub-du8ew
@TalentShowcaseHub-du8ew 5 ай бұрын
Thank you for the video, it was well explained and wort my time watching it.
@codertravel99
@codertravel99 Жыл бұрын
Thankyou Nelson for this course to launch but Nelson pls add rbac and abac and even microservices level also pls it's humble request to you
@berkiscsa9553
@berkiscsa9553 Жыл бұрын
very good demonstration, thank you and good luck
@ahmadali6624
@ahmadali6624 Жыл бұрын
Good and to the point video it will be great if you fix that part 31:00 to 44:00 it has the problem Thanks
@Flurrih
@Flurrih Жыл бұрын
Will this new course cover all topics from old course? I just started watching the old one, and I wonder if I should continue watching it or waitfor new one.
@khuonvakhim516
@khuonvakhim516 Жыл бұрын
Thanks for this content❤ I'm waiting for keycloak
@belolo97
@belolo97 Жыл бұрын
I would love to see security within microservices and spring gateway 😌
@HieuNguyen-xx5ll
@HieuNguyen-xx5ll Жыл бұрын
Thanks for your video very helpful !
@deyviddimitrov2967
@deyviddimitrov2967 Жыл бұрын
Will be useful if you can show in another video how to use JWT across microservice architecture :)
@venkateshd8332
@venkateshd8332 Жыл бұрын
Quick explaination for your question. Microservices should not be exposed to outside world directly each microservices so jwt tokens should be validated in gateway. If any of your service requires role based auth you can check those things in each service . Please correct me if am wrong in the concept
@deyviddimitrov2967
@deyviddimitrov2967 Жыл бұрын
@@venkateshd8332 Thanks, sounds logical. Do you have any good tutorial, video, doc or something which was useful for you?
@venkateshd8332
@venkateshd8332 Жыл бұрын
@@deyviddimitrov2967 I will check and update you here 🙂
@fabriziopadulano1995
@fabriziopadulano1995 Жыл бұрын
​@@venkateshd8332 Sorry i dont get it. Let's suppose i have a microservice named Customer, and every resource (rest endpoints) should be protected, and can be accessed only by authenticated users. So, the customer microservice should only handle CRUD operations, and not worrying about authentications and so on. The only thing the customer service would do in order to protect his endpoints, would be to make an HTTP call to the Authentication microservice, that would handle all the authentications stuff. Isnt this approach safe? The workflow would be: 1. /customers/{id} route 2. in the rest controller we make an http call to the auth microservice to verify the validity of the token, provided in the request header 3. if the call does not return a 200 then we throw an exception and the route cant be access.
@venkateshd8332
@venkateshd8332 Жыл бұрын
@@fabriziopadulano1995 yes you are correct here authorization will be taken care by gateway service which will communicate auth service for user validity if it says true then gateway service will delegate the request to appropriate service for example user microservice if it returns false then gateway will through token expired error or invalid user error
@malee_iconic
@malee_iconic Жыл бұрын
Greetings bro thanks for the wonderful content u are providing us with, i would like to request a video on how we can integrate spring boot application with another technology, the goal being to convert or migrate the web application to a desktop application
@BioInASec
@BioInASec 6 ай бұрын
Thanks for the tutorial , really helped .
@singh.karanbir
@singh.karanbir Жыл бұрын
Can you create a video that compares reactive vs non reactive spring security, actually a relating comparison between both
@kachoutmohamed9492
@kachoutmohamed9492 Жыл бұрын
AOuth2 Ressource server dependency is the best solution of implementing Spring Security with jwt
@dianadinh-andrus196
@dianadinh-andrus196 10 ай бұрын
They posted an updated video called Spring Boot 3 + Spring Security 6 - JWT Authentication and Authorisation [NEW] [2023]
@Miketar2424
@Miketar2424 3 ай бұрын
Thanks, this video is all but completely deprecated, and the update should have been posted in the description.
@DeGoya
@DeGoya Жыл бұрын
39:04 what's this? I don't want to sound ungrateful for the free content, but the overall quality is lacking in this video
@aji_ncodew
@aji_ncodew Жыл бұрын
Great content 😊
@businesshelpdesk4761
@businesshelpdesk4761 Жыл бұрын
Very helpful video. thankyou so much. Can you provide content of keyclock integration with JWT
@ascar66
@ascar66 Жыл бұрын
thank you for sharing knowledge. Nice video
@khaled.noordin
@khaled.noordin Жыл бұрын
Thanks. Great content.
@samos_vark
@samos_vark Жыл бұрын
Hello. Thank you very match. Great content.
@ezeenne
@ezeenne Жыл бұрын
no source code to get the jwtUtils from. how do we follow up?
@okellomarvin925
@okellomarvin925 Жыл бұрын
Hello @Amigoscode thank you for the video, can you please make a video on applying Attribute based access control on a collection in springboot using keycloak
@zaharapena8111
@zaharapena8111 Жыл бұрын
Thanks for the wonderful lesson on Spring security. I have followed all the steps but I'm not able to create the jwt token. Can I have the full source code ? Do you have it on a repository such as github ? Thanks
@n3lx621
@n3lx621 Жыл бұрын
19:00 If you don't put this class in config package then you will have to add @Configuration annotation to the class declaration otherwise the config will not be read.
@user-ep5ln4ut8i
@user-ep5ln4ut8i Жыл бұрын
My coding style is generally to put authentication functions in the Controller instead of JwtAuthFilter, which can make the code look a bit confusing.
@djalalkahramanov
@djalalkahramanov Жыл бұрын
Hello, thank you for video! But why you are using 2.7.4 version not 3.0.0? Will everything that you show in this video working for 3.0.0 version? please let me know
@welcomeJava
@welcomeJava Жыл бұрын
so helpful thank you
@mehdimersoul1865
@mehdimersoul1865 Жыл бұрын
nice, please can u make a video that you explain the difference between Spring boot versions, i konw you did a video already for spring boot 3 but i don't see the difference with old versions
@luigibenvenuto5181
@luigibenvenuto5181 Жыл бұрын
sei caldo socio !! grande amigoscode
@krayseer348
@krayseer348 Жыл бұрын
Thank you!!!
@kazuakikawahara6022
@kazuakikawahara6022 Жыл бұрын
Thank you for doing this! I was looking for a video explaining about the latest version of Spring Security because some things in Spring Security got deprecated
@adesuyiololade9062
@adesuyiololade9062 Жыл бұрын
pls do you have the source code? After following the video, im encountering unauthorized error in my postman
@guglielmobartelloni
@guglielmobartelloni Жыл бұрын
yes I think this is not the updated implementation
@guglielmobartelloni
@guglielmobartelloni Жыл бұрын
I solved the problem by using .authorizeHttpRequests()
@serumdev
@serumdev Жыл бұрын
Good Video! Can you explain how to implement oauth? Maybe as an example Google login.
@Tsion666
@Tsion666 6 ай бұрын
What is the difference between this video and the other Spring Security course video?
@artemusenko3546
@artemusenko3546 Жыл бұрын
You are amazing! Thanx for your lessons) Issue with AuthenticationManager solved by including @Configuration above the class declaration and jakarta.xml.bind jakarta.xml.bind-api 2.3.2 org.glassfish.jaxb jaxb-runtime
@azizbekibnhamid642
@azizbekibnhamid642 11 ай бұрын
Thank you very much!
@misharyduk8503
@misharyduk8503 Жыл бұрын
Tutorial is great even besides some problem with video/audio. A lot of useful stuff. But I have a question: do we really need to fetch user from database with every request to check if username is valid? We've signed token and it definitely can be trusted. Btw, it's neither good for productivity of app. Or am I missing something?
@djoleezcool
@djoleezcool Жыл бұрын
Hi Amigo, what would be the best way to get authenticated user form JWT token. For example request is "/myProfile" and it's depends of which user is calling the endpoint. What is the best practice?
@loshithahasaral3273
@loshithahasaral3273 Жыл бұрын
Thank you very much
@lifestylecontent2025
@lifestylecontent2025 10 ай бұрын
Good tutorial. Some methods such as authorizeRequests are deprecated. Would be useful to review up to date methods and alternatives, but great job explaining the fundamentals.
@gasperlf
@gasperlf Жыл бұрын
Hi, I've finished the spring security course and I was wondering if it is possible and you can check my idea about auth-service when I've applied all concepts I learned in your course, please let me know if it is possible. thanks
@riddyndoma
@riddyndoma Жыл бұрын
Great! the best tuto!
@adesuyiololade9062
@adesuyiololade9062 Жыл бұрын
pls do you have the source code? After following the video, im encountering unauthorized error in my postman
@sheryswati5968
@sheryswati5968 7 ай бұрын
Please make a video on Oauth and Salesforce integration with springboot. And you are dpooijng an amazing job. Hatsoff!!!
@hopechijuka2100
@hopechijuka2100 Жыл бұрын
Thank you Amigoscode and Bouali Ali for putting this together. However the video is lagging. It is not in sync with his voice.
@adesuyiololade9062
@adesuyiololade9062 Жыл бұрын
pls do you have the source code? After following the video, im encountering unauthorized error in my postman
@FelipeGrungeable
@FelipeGrungeable Жыл бұрын
Thanks AmigosCode for this tutorial. Im having a problem in 21:47 with the basic authentication on a Spring Boot 3.0 project. When i wrote http.authorizeRequests() , intellij says that is deprecated. I ignore that and run the project with the code explained on this video but i keep getting the same login page that is generated by default (Not the basic) Which method is replacing the deprecated authorizeRequests()?
@theartur4268
@theartur4268 Жыл бұрын
check out authorizeHttpRequests()
@okom6
@okom6 Жыл бұрын
Thanks for video. In my case, I don't know what is happening after basicAuth (again; it's not my first time to try lern jwt token -_-). There is soo many dependencies between spring classes. Mabye another (newest) tutorial will be more understandable.
@RobbAlmerco
@RobbAlmerco Жыл бұрын
Hi my friend, this tutorial is really helpful, thanks!! I have a question, what about if I want to send the credentials in authorization and the request?
@Sarita33333
@Sarita33333 Жыл бұрын
man i needed this like 1 month ago :(
@jayshah1976
@jayshah1976 Жыл бұрын
Hey, I implemented this and found this tutorial very useful. I'm curious to know that this technique works for multiple authentication providers? If yes, how could it be done.
@egamberdijabborov6586
@egamberdijabborov6586 Жыл бұрын
Thanks for this tutorial! Please add oauth2 and security with authorization servers.
@kamranastanov5016
@kamranastanov5016 Жыл бұрын
Brother I loved your greeting. Assalamu Aleykum ve Rahmatullahi ve Barakatuh.
@samey_8430
@samey_8430 Жыл бұрын
Good Content, You are guys are the best
@amintalukder7189
@amintalukder7189 Жыл бұрын
Nice video ! Just to add one thing, when writing controller - authentication is being done by authenticationmanager but then what is the need to call jwtutility function to generate token ? Should it not be done automatically by filter chain ?
@gandibaat3637
@gandibaat3637 Жыл бұрын
This endpoint is covered with ".permitAll()", so there's no auth filters will be called for it
@momenhamaveisi2655
@momenhamaveisi2655 Жыл бұрын
Hello Thank you for this video. I was wondering did you publish these codes on github or somewhere we can reach. Video was frozen and I can`t complete the codes.
@hba6018
@hba6018 4 ай бұрын
Min 1:06:31, you don't have to call an annotated bean method because you are going to be creating another instance outside of the Spring context. You can inject into the method securityFilterChain an authenticationProvider instance
@tharoseth8064
@tharoseth8064 Жыл бұрын
Thank you
@autocadbd.2023
@autocadbd.2023 Жыл бұрын
Thanks for sharing
@ChandanKumar-ou9fr
@ChandanKumar-ou9fr Жыл бұрын
Adding salt with JWT will make the course wow 🤓
@filipkostic6580
@filipkostic6580 Жыл бұрын
I wanted to ask question, it says that authorizerequests is deprecated. Can you help me with that. Thank you.
@kchemutai3483
@kchemutai3483 Жыл бұрын
This is a great video, thanks for the tutorial, i don't know if i am the only one experiencing this but at 30 minutes the video starts freezing
@adebowaleadeniran9474
@adebowaleadeniran9474 4 ай бұрын
@Amigoscode Your videos has really developed my interest for Java Backend development. Thank you for your good work. Is there a way to reach out to you privately?
@swarupdas1061
@swarupdas1061 Жыл бұрын
Couldn't catch up with the code and tutorial as such, there is no git link shared also. Such a nice setup with a nice topic but this basic thing could have been corrected post recording. Please try to correct it and thanks for the help to dev community!!
@mattiagaetanogreco
@mattiagaetanogreco 4 ай бұрын
It feels like some of the editing was not finished, the video could have been more polished, and some explanations are too vague... But still very helpful, thank you very much!
@user-ow1mu1fq3o
@user-ow1mu1fq3o Жыл бұрын
Que gran contenido , saludos
10 Spring and Spring Boot Common Mistakes You Need To STOP
15:49
Amigoscode
Рет қаралды 142 М.
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 12 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 53 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 93 МЛН
Spring Security Architecture Explained
14:41
Amigoscode
Рет қаралды 99 М.
Spring Boot + Spring Security + JWT from scratch - Java Brains
39:29
What is JWT? JSON Web Tokens Explained (Java Brains)
14:53
Java Brains
Рет қаралды 1 МЛН
Functional Programming with Java Streams API
50:00
Amigoscode
Рет қаралды 174 М.
Spring Security, demystified by Daniel Garnier Moiroux
2:36:00
Here's The Secret How To Create These Animated Diagrams
11:12
Amigoscode
Рет қаралды 394 М.
Java Roadmap for 2024
11:28
Amigoscode
Рет қаралды 134 М.
Java Functional Programming | Full Course
2:22:15
Amigoscode
Рет қаралды 560 М.
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2,1 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 973 М.
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 352 М.
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00