OAuth2 Login Made Easy in Java: A Spring Boot & Spring Security Walkthrough

  Рет қаралды 150,441

Dan Vega

Dan Vega

Күн бұрын

Пікірлер: 184
@geosystems2106
@geosystems2106 Жыл бұрын
This one was great 👍👍 yet 2 possible extensions : 1- Linked the authentication with authorization which is supported by a JWT would be a more real-life example 2- Customization of the login page : Definitely, who wants to use it as it is ?! Thanks a lot !!!! 💙
@andyl.5998
@andyl.5998 Жыл бұрын
Definitely would appreciate a tutorial on how to customize the login page with a real front-end framework and tailwind! 🙏
@DanVega
@DanVega Жыл бұрын
Love me some Tailwind!
@jovaniecabatuan6364
@jovaniecabatuan6364 Жыл бұрын
waiting for this tutorial.
@mursalin3698
@mursalin3698 Жыл бұрын
@@DanVega bootstrap is cool too
@nitheeshk1292
@nitheeshk1292 9 ай бұрын
Still waiting!!!
@harisahmad7871
@harisahmad7871 8 ай бұрын
Still waiting!!!
@folicreppy5592
@folicreppy5592 Жыл бұрын
Another banger of a tutorial. Thanks for the vid! I'm definitely interested in a tutorial focused on customizing the login page. I'd also be interested in a longer-form React/Angular + Spring Boot + some noSQL DB tutorial if that's a stack you're into! Thanks again!
@pawepietrzykowski9893
@pawepietrzykowski9893 Жыл бұрын
Amazing. Tutorial on login with a form mixed with social logins - placed in a separate React or Vue application connected to a spring-boot application acting as authentication and authorization server would be awesome. I could even pay for it :)
@BeksultanMamatkadyruulu-e6r
@BeksultanMamatkadyruulu-e6r Жыл бұрын
Yeah I'm also really need it
@sagarbhat3884
@sagarbhat3884 Жыл бұрын
Good video Dan! I would definitely be interested in a tutorial for customizing the login screen in a front end app leveraging React or Vue framework, connected to a Springboot application acting as an OAuth client.
@hiteshbulani6079
@hiteshbulani6079 Жыл бұрын
Hey were you able to do that
@michaeladonis2211
@michaeladonis2211 Жыл бұрын
Me too Dan!
@_VuTrungNghia
@_VuTrungNghia Жыл бұрын
yeah 🥰
@paulnzioki8782
@paulnzioki8782 Жыл бұрын
Hi Dan, thank you for the great tutorials you make for us! 👊 [We] are definitely interested in a tutorial on how to override the default login screen.
@saidelhabchi5505
@saidelhabchi5505 Жыл бұрын
Thank you for this tutorial. Customizing this with a frontend library is a need tbh
@SimpleCookiee
@SimpleCookiee 8 ай бұрын
Good, now we just need to learn how to logout as well
@S487x
@S487x Жыл бұрын
It would be great to have a tutorial with customized login and error pages and a real FE connection!
@arnaudpoutieu1331
@arnaudpoutieu1331 Жыл бұрын
Hi Dan. As you asked, please add to this one the customization of login screen (vanilla HTML and CSS). Gratitudes!!!
@poloolo69
@poloolo69 5 ай бұрын
you are the realest one so incredibly concise and high quality tutorials! love your content
@BbB-vr9uh
@BbB-vr9uh Ай бұрын
Would be curious to learn more about all of this stuff. Great tutorial for an intro!
@mykhailoshekera6079
@mykhailoshekera6079 3 күн бұрын
Great video, thanks! Tried to set up the OAuth with FB, but figured out they require an app review 🥴
@RossieHoorn
@RossieHoorn Жыл бұрын
Great video. I love it when they are short but powerful!
@DanVega
@DanVega Жыл бұрын
Thank you!
@sandeep_begudem
@sandeep_begudem Жыл бұрын
⁠@@DanVegacould you make tutorial on oauth2 endpoint (no social apps login) so that a user or an entity can access downstream endpoints using the access token? Thank you!
@anthonysox2001
@anthonysox2001 Жыл бұрын
Great tutorial. Definitely would love the login page with angular and tailwind.
@kunalvarpe40
@kunalvarpe40 Жыл бұрын
Yes it would be good know the customizing the pages. Especially with tailwind css.
@janisyed1519
@janisyed1519 6 күн бұрын
Thank you so much, you made most of my work easy.
@DanVega
@DanVega 6 күн бұрын
You are very welcome. Glad I could help!
@gordanainic2766
@gordanainic2766 6 ай бұрын
Hi Dan Vega! Thank you for helping us to understand more about Spring! Can you do one video about Spring and WSO2 API Manager? How it works and how do you use it in Spring! Thank you so much!!!
@mrowox
@mrowox Жыл бұрын
Thank you so much for this tutorial. I am really looking forward to the tutorial on how to customize the form login. Thank you once again. Cheers
@victorojo
@victorojo 3 ай бұрын
Hey @Dan Vega , I will appreciate the video on customizing the login page . Vite or any other framework will be awesome . Thanks for this one
@phuocbuinhu
@phuocbuinhu Жыл бұрын
Thank you so much, that's really help me 'cause spring security is to difficult for me
@DanielHorrisberger
@DanielHorrisberger Жыл бұрын
Yeah I wish a login customization. Great video Dan!
@РоманПивоваров-ф7ш
@РоманПивоваров-ф7ш 3 ай бұрын
as always, you master to expalin hard things simply ways, thank you a lot!
@Apopjak
@Apopjak Жыл бұрын
What the hell , duude, this is crazy how easy it is thanks for the video
@Jacker3331
@Jacker3331 Жыл бұрын
Definately would love to see Spring OAuth in Vue and Tailwind combination!
@ger1991mess
@ger1991mess Жыл бұрын
Awesome! Thank you very much from the bottom of my heart, I am learning Spring and this saved my week.
@muslehhaj4164
@muslehhaj4164 4 ай бұрын
Amazing simplified long story of OAuth2 login !! I love your way in getting things too simple to understand !!! thanks a lot Master !! 👍👍👌👌👌👌👌👌 there is another story that I'm trying to find , which is getting OAuth user info and to store it in users DB table. Can you show me how to do it using MVC [not API] ? please Master 🆘🆘
@MichaelRinghusGertz
@MichaelRinghusGertz 7 ай бұрын
Thanks for a great video. Really explaied how to do this in a quick way. But I would love to see a video of using oauth2, but where the application is a API application, with fx a react frontend. But also i would like to store a user from the oauth2 login, such that the user could be coupled to some sort of data.
@arielcastillo7925
@arielcastillo7925 Жыл бұрын
thanksss, i think that you are the only making this sort of videos about spring boot jeje, very thanks!!
@andrestremols6461
@andrestremols6461 14 күн бұрын
Thanks for the vid. I have one question: in oauth2's technical jargon which kind of flow is this?
@SaurabhSrivastavInBinary
@SaurabhSrivastavInBinary 13 күн бұрын
Authorization code grant flow
@andrestremols6461
@andrestremols6461 13 күн бұрын
@@SaurabhSrivastavInBinary thank you!
@arjunshaji8856
@arjunshaji8856 Жыл бұрын
Love form KERALA !!! Good video Dan! Thank you.
@AlexandreSantos0
@AlexandreSantos0 2 ай бұрын
Subscribed. You are a great teacher.
@attoumak
@attoumak Жыл бұрын
Could you provide the same example but using Spring Authorization Server as provider?
@mandelamurithi6417
@mandelamurithi6417 Жыл бұрын
Yeah, kindly please provide a video for creating an authorization server
@srinivasaraju8399
@srinivasaraju8399 9 ай бұрын
This is one of the greatest video please keep make spring boot videos
@Priya-uz7yy
@Priya-uz7yy 8 ай бұрын
Super cool, always wanted to do it but never knew it was that easy :)
@Acesif
@Acesif 7 ай бұрын
It's an ok-ish tutorial if you already know and understand how spring security works, it just tells you "you do as I do", not really explaining what's going on under the hood
@DanVega
@DanVega 7 ай бұрын
What concepts can I explain further?
@joseantoni034
@joseantoni034 Жыл бұрын
I would like to watch that tutorial, React, Vue or Angular would be great!
@ricardoaguilar8508
@ricardoaguilar8508 Жыл бұрын
It would be great to see frontend part in Vuejs and would be great you can teach us how to do it with a spring authorization server
@RaphaelSousa-or1dl
@RaphaelSousa-or1dl Ай бұрын
But does the user need to authenticate itself everytime? How can we reuse the token?
@ornelfranck
@ornelfranck Жыл бұрын
Niiiiiiiiiiice!!!!And yes customizing the login page would be definitely amazing.
@romeritoalencardasilva4032
@romeritoalencardasilva4032 Жыл бұрын
Tirei o meu o meu chapéu para vc! Parabéns.
@m_i_g_u_e_l_
@m_i_g_u_e_l_ Жыл бұрын
Best teacher ever. Thank you so much
@vaibhavsrivastava4645
@vaibhavsrivastava4645 9 ай бұрын
A very good content to start with. Thanks Dan.
@gaxgreywarden711
@gaxgreywarden711 4 ай бұрын
Great tutorial. You saved me a lot of time. Thank you a lot.
@user-zs3om7ws9u
@user-zs3om7ws9u Жыл бұрын
Thanks for great video. can u plz make a video with UI framework like React /Angular + Spring security :)
@ichigoplayss376
@ichigoplayss376 Жыл бұрын
I feel like I'm using NextAuth/Authjs with this one, thanks a lot Dan, and also hope there is like another tutorial to save those data to our backend. And how the data is stored to the database after a successful Authentication.
@naseermohammad3756
@naseermohammad3756 2 ай бұрын
Incredibly superb
@akhiladiga9771
@akhiladiga9771 Жыл бұрын
Hello Dan , could you please make a video on Spring Authorization server.
@deepanshuganotra4088
@deepanshuganotra4088 Жыл бұрын
Nice concise explanation
@YasithTharindu
@YasithTharindu 7 ай бұрын
Wow so simple explanation sir thank u
@DanVega
@DanVega 7 ай бұрын
You're most welcome
@delsix1222
@delsix1222 9 ай бұрын
I really don't understand what am I doing wrong. I have correct client id and client token, the application successfuly redirects to the github oauth2 login (the link is just like in the video), i'm using latest spring boot version, but github says "404 page not found" edit: i fixed the issue (in 5 minutes lmao), my client id was incorrect. i had to be more vigilant
@alessandrobx5850
@alessandrobx5850 Жыл бұрын
Thanks for this video and how to customize the login Page Is very intresting topic
@kensaitakeso
@kensaitakeso Жыл бұрын
Thanks Dan. it would be great to have the same tutorial for MS Azure as well..
@mlensment
@mlensment Жыл бұрын
Thank you for the video! I’m really interested how Oauth2 login would work if I have separate front end in VueJs.
@kiemtientemu
@kiemtientemu Жыл бұрын
at minute 4:32 what did he click to add on-demand static import
@NurmukhamedaliBegildayev
@NurmukhamedaliBegildayev 6 ай бұрын
Amazing! Next How to authorize thru it and save this user to Database as customer.
@prasanthvarghese-h2g
@prasanthvarghese-h2g 10 ай бұрын
Great tutorial. Is it possible to open the Oauth2 provider login screen in the new popup and close it upon successful authorization?
@sueprbr
@sueprbr 7 ай бұрын
Excellent. Nice and simple.
@TheGuroguro12
@TheGuroguro12 11 ай бұрын
thank you, can same thing be done to custom spring authorization server
@arnaudpoutieu1331
@arnaudpoutieu1331 Жыл бұрын
Very informative one. Thanks Dan!
@lac4793
@lac4793 Жыл бұрын
Hi excellent video, could you please said to me what font you currently use for Intellij?, thanks in advance
@chennakesavulu08
@chennakesavulu08 Жыл бұрын
Hi Dan, Thanks for doing this video. It's amazing video. I tried same with spring boot 2.7.14 and jdk 8 auth.requestMatchers("/").permitAll(); this line getting error that:Cannot resolve method 'requestMatchers(String)'
@marcoodermatt6857
@marcoodermatt6857 Жыл бұрын
Getting the same error.
@nazariitkachuk9274
@nazariitkachuk9274 Жыл бұрын
Great explanation!! Thanks 😊
@Bubumuk
@Bubumuk Жыл бұрын
Nice. I'd like to do it with keycloak
@svalyavasvalyava9867
@svalyavasvalyava9867 Жыл бұрын
Wonderful tutorial, thank you ☺️
@tandapnoelbansikah6280
@tandapnoelbansikah6280 Ай бұрын
Great video! Please how can integrate this with my react application, spring boot as backend and react as backend application
@bloodxxet
@bloodxxet Жыл бұрын
very good tutor, keep it up!! also can u please tell which idea theme u use?
@mustafakucuk1338
@mustafakucuk1338 6 ай бұрын
This video is helpfull. Is there a video for social login with angular and spring boot.
@roman_mf
@roman_mf Жыл бұрын
Love the series, but would really like to see you go a little bit more in depth about this one. After user gives consent is redirected to the redirect URI, what happens? What if users have some persisted preferences in the database and I want to persist the user who authenticated with OAuth2 Login, what would I do?
@ozifirebrand
@ozifirebrand Жыл бұрын
Exactly. Currently on this matter
@vaibhavchaudhary5423
@vaibhavchaudhary5423 Жыл бұрын
Informative video. Thank you so much.
@harishbabu1920
@harishbabu1920 Жыл бұрын
Hi, this is very intresting.. can you specify how to achieve this by creating our own customized authorization server and client
@HerrKaleu777
@HerrKaleu777 Жыл бұрын
Hi Dan! Thanks for your great videos! I am currently trying to set up a Spring Boot 3.05 REST Api which I want to security using a Keycloak server (which in turn ist hooked up to an LDAP server). I seem to get lost between several changes in Keycloak, Spring security and different tutorials. Any chance you could make a blog post on how to facilitate Keycloak in SB Rest API?
@abrarsaleem6712
@abrarsaleem6712 7 ай бұрын
hello boss, kindly make a complete project with spring boot backend and vue js forntend with all the functionalities including oauth jwt user roles etc etc
@DanVega
@DanVega 7 ай бұрын
I will add that to my content idea board.
@benjaminpeljto7408
@benjaminpeljto7408 7 ай бұрын
Hello Dan! I have a question regarding the custom UI login page.. Is it okay just to forward the user to the redirect url from backend and let the backend to the rest? Thanks
@gigglecoder
@gigglecoder 9 ай бұрын
great video Dan. can you make a video that user can login with facebook?
@ypathan420
@ypathan420 Жыл бұрын
would definitely appreciate the custom login page tutorial. I have been looking for it everywhere. I can implement custom login page with the normal form login but i am having issues with oauth2 custom login buttons, where should i direct them etc...
@luizdosreis9610
@luizdosreis9610 Жыл бұрын
Very nice, how this works with an Angular or Vue as Frontend?
@jaysizmir9432
@jaysizmir9432 Жыл бұрын
I believe you just need to use the secured endpoint in his example and set up a custom form login(which can come from Angular, vue or whatever) by providing your login form page url. You can add in the builder of the HttpSecurity object methods like loginPage(), loginProcessingUrl(), failureUrl() and so on...
@AlanHearshel
@AlanHearshel Жыл бұрын
good for an initial insight, but I feel it is kind of incomplete. what if I need to execute a Post? I cant do it from the Browser, right? And if I execute via Postman I wont be viewing the pretty login screen. So I would appreciate a follow-up video to this one so we can learn how to authenticate other types of requests.
@chuongle3353
@chuongle3353 Жыл бұрын
What intellij theme are you using on the video? Thanks
@furkanucar52
@furkanucar52 Жыл бұрын
Great way to teach sir, but can you make your camera little bit smaller? Can't see easily because of it :(
@jayeshkhadke5516
@jayeshkhadke5516 10 ай бұрын
Hi Dan, can you also show how to do it using Slack in Spring Boot
@gennadyshevchenko7940
@gennadyshevchenko7940 Жыл бұрын
Can you create video about classloaders?
@dan2thi
@dan2thi Жыл бұрын
Awesome stuff! 💯💯💯
@antikerantrieb2382
@antikerantrieb2382 9 ай бұрын
I Choose Java 21 and have to many problems did something Change since 17 with the 0Auth2??
@prithvirajan105
@prithvirajan105 Ай бұрын
You are the best 👍👍
@avokadon3103
@avokadon3103 Жыл бұрын
What if you do have a separate frontend app. Like a Angular/React app. How do you do with the formlogin then?
@DanVega
@DanVega Жыл бұрын
You can't use formLogin from your own client and you would need to provide your own form in your Angular Application. Here is an example of how to do that. spring.io/guides/tutorials/spring-security-and-angular-js/
@nitisharora2795
@nitisharora2795 5 ай бұрын
short and crisp!
@Wildlife_foreve
@Wildlife_foreve 5 ай бұрын
why spring security dependency was not used. is oauth acting as a security module here?
@debkr
@debkr 3 ай бұрын
What is the difference between Oauth2 Login and Oauth2 Client ?
@akshat1808
@akshat1808 Жыл бұрын
Hey Dan, could you please tell me what additional properties I would have to use to implement this for zoom? Thanks.
@punekarinwinnipeg214
@punekarinwinnipeg214 Жыл бұрын
Hello dan, i had a question related to roles and authority in spring security . How can i set authorities directly to the roles. For example : there are two roles ADMIN and ADMIN_TRAINEE. Now only those users with role ADMIN can read and write from/to the database. Whereas users with role ADMIN_TRAINEE can only read from the database. Since these roles are enum fields, how can I add authorities to these enum values? Should I have a separate private instance variable (String) named authorities and store list of authorities? Or is else a way where I can map those enum constants roles to those authorities?
@antonbondar4083
@antonbondar4083 7 ай бұрын
What Idea theme is it? I really need it!!
@DanVega
@DanVega 7 ай бұрын
I have a page for that on my website that I want to add some more tips to www.danvega.dev/ide
@JavierMarin0802
@JavierMarin0802 Ай бұрын
excelente tutorial
@middle4467
@middle4467 9 ай бұрын
what theme, font you use for your editor sir?
@enishalilaj9309
@enishalilaj9309 Жыл бұрын
Hi Dan, great video. May I suggest placing your camera video on the corner of the screen like some of the previous videos rather than the one in this video. I think that creates a better experience, otherwise thank you for sharing! :)
@Korgoon
@Korgoon Жыл бұрын
I wonder where from did you got that redirect_url, you don't have endpoint like that in your application but everything is working. Why?
@kihel-b4e
@kihel-b4e 3 ай бұрын
Good job !
@batatafeia362
@batatafeia362 Жыл бұрын
Awesome vid!
@techiesrikanth2447
@techiesrikanth2447 2 ай бұрын
can we add Authorization with OAuth Client
@souravpaul6086
@souravpaul6086 Жыл бұрын
Great video Dan ❤ Could you please make a video where we have github login and form login like this video but after successfully login both users (github users and no github users) will get a jwt token to access secured endpoint
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Colorful Pasta Painting for Fun Times! 🍝 🎨
00:29
La La Learn
Рет қаралды 308 МЛН
OAuth 2.0 explained with examples
10:03
ByteMonk
Рет қаралды 150 М.
Spring Boot + Spring Security + JWT from scratch - Java Brains
39:29
OAuth2  & Spring boot 3 & Social login | never been easier
1:05:27
Bouali Ali
Рет қаралды 69 М.
Spring Security + OAuth2 + JTE: Login System Tutorial
24:39
Dan Vega
Рет қаралды 4,5 М.
Setup Google OAuth sign in 6 minutes
6:51
Appwrite
Рет қаралды 78 М.
OAuth 2.0 Implementation with Spring Security and Spring Boot | Full Example
1:11:15