No video

OAuth2 & Spring boot 3 & Social login | never been easier

  Рет қаралды 63,944

Bouali Ali

Bouali Ali

Күн бұрын

Buy me a coffee: ko-fi.com/boua... #spring #learning #springboot #springtutorial #springsecurity #developpement #java #arraylist #linkedlist #springdatajpa #querybuilder #aliboucoding #alibou #validation #mongodb #springboot_3 #oauth2 #security
OAuth 2.0, which stands for “Open Authorization”, is a standard designed to allow a website or application to access resources hosted by other web apps on behalf of a user. It replaced OAuth 1.0 in 2012 and is now the de facto industry standard for online authorization. OAuth 2.0 provides consented access and restricts actions of what the client app can perform on resources on behalf of the user, without ever sharing the user's credentials.
Although the web is the main platform for OAuth 2, the specification also describes how to handle this kind of delegated access to other client types (browser-based applications, server-side web applications, native/mobile apps, connected devices, etc.)
OAuth 2.0 is an authorization protocol and NOT an authentication protocol. As such, it is designed primarily as a means of granting access to a set of resources, for example, remote APIs or user data.
Don't Forget to
===========================================
💯 Source code: github.com/ali...
💯 Free courses here: aliboucoding.com
💯 Subscribe to the youtube channel
💯 Join our Discord Community - / discord
💯 Join our Facebook Group - / 589612651142975
💯 Join our Instagram: / alibou_coding
Table of content
00:00 Intro
02:57 What is OAuth 2.0
04:35 Principles of OAuth 2.0
06:13 The big picture of the OAuth 2.0 flow
09:41 OAuth 2.0 detailed flow
15:22 Oauth 2.0 terms
18:00 Quick word before coding
19:40 Create a new Spring boot project
22:12 Create the GitHub application
26:52 Create the Google application
30:00 Create a demo controller
34:00 Secure the backend endpoints
37:18 Add the OAuth 2.0 GitHub configuration
40:08 Test the Authorization Flow
45:17 debug the Authorization flow
51:18 How Spring really implements OAuth 2.0
01:01:22 Add Google as OAuth 2.0 provider
01:03:23 Connect with Google
01:04:47 What comes next?

Пікірлер: 247
@BoualiAli
@BoualiAli Жыл бұрын
Join the Micro Services course waiting list and get and get an exclusive *EARLY-BIRD discount* aliboucoding.ck.page/d0f9317e13
@fakewars9395
@fakewars9395 11 ай бұрын
i will buy your course if it using security for each service and using angular or reactjs for frontend
@ashibindal6644
@ashibindal6644 3 ай бұрын
@BoualiAli could you please share the information of follow up video for custom Authorization
@AnilKumarPrajapati-lv8fs
@AnilKumarPrajapati-lv8fs 6 ай бұрын
Wow, what an incredibly helpful video on Spring Boot! 🌱👍 I really appreciate the clear explanations and step-by-step instructions provided.
@kevinameda2711
@kevinameda2711 Жыл бұрын
Thank you Ali I really appreciate you very much, stay blessed and God help you in all your endeavors. To find ones withh such a heart is rare
@BoualiAli
@BoualiAli Жыл бұрын
Thank you so much brother JZK ❤️❤️
@anubhavgarg6359
@anubhavgarg6359 21 сағат бұрын
9:41 amazing diagram to understand.
@d4z3r1tap4
@d4z3r1tap4 Жыл бұрын
Such a great video. Thank you! A lot of people would like to see how to implement oauth2 with a logic jwt, once you singed in with a google, front get the jwt token and invoke any methods with the jwt token. That is means logic with the jwt token will be not changed, but we added google oauth2. None of youtube videos about this issue…
@BoualiAli
@BoualiAli Жыл бұрын
I really have this video idea on my todo list. it is just a matter of time and it will be done ASAP
@Jullless
@Jullless 7 ай бұрын
@@BoualiAli Any update regarding this topic so far? Would be intersting to see it in combination with angular.
@jayjoshi1366
@jayjoshi1366 7 ай бұрын
Awesome video on OAuth 2.0 implementation using social logins. I never thought that this would be so much easier, but I think you made it easy to understand for beginners to experienced and seniors as well. Your contribution is very much valuable and I hope you get more and more support in terms of Subscription + likes + shares + comments.
@BoualiAli
@BoualiAli 7 ай бұрын
Great to hear!
@zabialy2919
@zabialy2919 Жыл бұрын
Great Video. It would be cool to see how the workflow looks when it is combined with a usual JWT Token authenticated with credentials.
@BoualiAli
@BoualiAli Жыл бұрын
Working on it already
@zabialy2919
@zabialy2919 Жыл бұрын
@@BoualiAli Btw. what is the theme you are using?
@BoualiAli
@BoualiAli Жыл бұрын
@@zabialy2919 it is the default theme of the new version of intellij
@boubacarbarry222
@boubacarbarry222 Жыл бұрын
Thank you so much, i've learned a lot from you, may the Almighty reward you ! The next thing i would like to learn from you is microservice and ci/cd approach.
@BoualiAli
@BoualiAli Жыл бұрын
I’m preparing a good thing about microservices Just still need some time to make it done ✅
@seethad8057
@seethad8057 6 ай бұрын
you are really awesome..Thank you for this valuable session..
@BoualiAli
@BoualiAli 3 ай бұрын
Glad you think so!
@mrpipiskin4
@mrpipiskin4 Жыл бұрын
Thank you. Very userful for beginners.
@BoualiAli
@BoualiAli Жыл бұрын
Happy you liked it
@johnmumo8282
@johnmumo8282 Жыл бұрын
Thanks buddy and i like how your doing real solutions example which someone can apply to their personal project Next maybe we should host this app now
@BoualiAli
@BoualiAli Жыл бұрын
Really happy you liked it
@johnmumo8282
@johnmumo8282 Жыл бұрын
@@BoualiAli when can we expect the combined oauth and jwt authentication??
@bryanoconalhere
@bryanoconalhere Жыл бұрын
Dear, I have gone through so many videos from paid courses as well but really didn't see any such tutorial. You really explained and demonstrated so easily. Salute to you. Keep it up. Thank you so much for such informative video.
@BoualiAli
@BoualiAli Жыл бұрын
I really appreciate and like your comment and feedback Glad it was helpful!
@merxxibeaucoup9093
@merxxibeaucoup9093 Жыл бұрын
I hit like before I even watched it .......knew it was gonna be great , and it was !!
@BoualiAli
@BoualiAli Жыл бұрын
Best comment ever. You just made my day. Thanks a lot bro
@raselahmedb
@raselahmedb Ай бұрын
You are great teacher.
@pragmaticcoder6910
@pragmaticcoder6910 Ай бұрын
Thank you so much for this video.
@journalram8752
@journalram8752 11 күн бұрын
thank you so muchh
@EricWilliamsonTech
@EricWilliamsonTech 8 ай бұрын
Excellent video! Thank you!
@BoualiAli
@BoualiAli 8 ай бұрын
Glad you liked it!
@ichebaduchukwu697
@ichebaduchukwu697 Жыл бұрын
this video is so simply for every one to understand..can you make more videos on this?
@BoualiAli
@BoualiAli Жыл бұрын
Really happy you liked it Sure I will
@busaridwan
@busaridwan Жыл бұрын
Well explained. Thank you Ali
@BoualiAli
@BoualiAli Жыл бұрын
Really happy you liked it
@chandan07talreja
@chandan07talreja Жыл бұрын
Excellent explanation 🙌🏻 Keep videos like this coming 🙌🏻
@BoualiAli
@BoualiAli Жыл бұрын
Absolutely Thank you for the feedback
@AshuSinghIN
@AshuSinghIN Жыл бұрын
Hey Bouali, you are really doing a great work here.
@BoualiAli
@BoualiAli Жыл бұрын
Thanks a lot
@koneesaie6476
@koneesaie6476 Жыл бұрын
Thanks a lot boss. Your courses are really helpfull to me.
@BoualiAli
@BoualiAli Жыл бұрын
Thanks Really happy to know that
@Igris004
@Igris004 Ай бұрын
Great video, thank you so much. How about Android applications? Where should I make configuration of Oauth2 in this case? In android application or as you have shown in Rest API ?
@vageeshanvageesh5583
@vageeshanvageesh5583 Жыл бұрын
Great content, can you please guide us on using JWT oauth2 in the combination of Authorisation server and resource server
@BoualiAli
@BoualiAli Жыл бұрын
This is what the video is about.authorization and resource server. Can you explain more?
@chedizefzef3313
@chedizefzef3313 Жыл бұрын
exactly
@vageeshanvageesh5583
@vageeshanvageesh5583 Жыл бұрын
@@BoualiAli In this session you explained very clearly and in depth about the oauth2 concepts and with an example of social login providers like google, facebook and github. What we are asking is, implemention of oauth2 using spring security without any external providers. At the high level 1. One spring boot application (Act as a authorization server) - This application is responsible for validating the user credentials, generating the token (JWT or JDBC) and validating the token. Hence user details needed to be stored in our database not in third party providers. 2. Another spring boot application (Act as a resource server) - This application may contains both secured and public endpoints. if user try to access the secured endpoints the request must be validated by our Authorization server application (We are sending the token as bearer in header). If a particular request is valid then we can access the secured endpoints otherwise un authorized. Hope i answered your question...
@BoualiAli
@BoualiAli Жыл бұрын
@@vageeshanvageesh5583 now it’s clear I will take note of that and prepare a course about it
@vageeshanvageesh5583
@vageeshanvageesh5583 Жыл бұрын
@@BoualiAli Thank you so much man, Im trying to implement this from past months but no luck, If you have some time please guide us on this.
@musoxoshimov4908
@musoxoshimov4908 4 ай бұрын
zo'r chiqibti👍👍👍👍
@mohamedharounneffati9978
@mohamedharounneffati9978 Жыл бұрын
Thank you So much , Like before watching
@BoualiAli
@BoualiAli Жыл бұрын
So nice of you
@DrTatra
@DrTatra 6 ай бұрын
Thank you so much for this video
@BoualiAli
@BoualiAli 3 ай бұрын
You're so welcome!
@DholaSain
@DholaSain 11 ай бұрын
🤩 Video is awesome. i have few questions. ✋ What if our application uses all type of Auth. Email Password, Google, Facebook and Apple? and we also want to use the JWT for client & server communication? ✋ What about the mobile apps front end side to authenticate, mobile apps have different behaviour in Apple Authentication? 🤌 Please make a video for these requirements. i really want to learn all of these.🤌
@BoualiAli
@BoualiAli 10 ай бұрын
I already planned this video but I just can't find enough time to do it. But I will so soon
@atefjlassi193
@atefjlassi193 Жыл бұрын
Great content aloulou, thank you so much bro
@BoualiAli
@BoualiAli Жыл бұрын
Ny pleasure bro
@ouyoussmeryem1916
@ouyoussmeryem1916 Ай бұрын
thank you
@user-hg5ss9vm6v
@user-hg5ss9vm6v Жыл бұрын
When I creating app in google cloud, it asking redirect-uri. It should end with login/oauth2/code/google and for github it should end with login/oauth2/code/github
@BoualiAli
@BoualiAli Жыл бұрын
The redirect URI is where do you want to be redirected after a successfull login
@user-hg5ss9vm6v
@user-hg5ss9vm6v Жыл бұрын
@@BoualiAli yes, also google server send a token to this uri. And for normal recieve this token by spring ouath2 module, it should come exactly to the login/oauth2/code/google uri
@AliZain-sb5jb
@AliZain-sb5jb 4 ай бұрын
really appreciate your support sir, please make a vedio for login form with latest version of spring boot + jwt security+angular ui.. thanku
@BoualiAli
@BoualiAli 4 ай бұрын
Already uploaded
@naderayed9562
@naderayed9562 Жыл бұрын
Thanks a lot, you are really inspiring and motivating me with your sharing and guidance.
@BoualiAli
@BoualiAli Жыл бұрын
Thanks a lot bro. You’re my motivation
@aditisaini729
@aditisaini729 8 ай бұрын
Nice one... Can you please create video on sign up with apple
@BoualiAli
@BoualiAli 8 ай бұрын
It is the same concept
@petersabraham7423
@petersabraham7423 4 ай бұрын
Hello @BoualiAli, I've been following your channel for while and i must say, you have one of the best springboot content on KZbin. Well done. That being said, I have a question and I'd really appreciate your prompt response. How do I implement OAuth (in my case, Google and Facebook) together with traditional user login (username and password authentication)?
@BoualiAli
@BoualiAli 4 ай бұрын
Thanks, will do!
@amemiamir7934
@amemiamir7934 Жыл бұрын
Thank you for explanation
@BoualiAli
@BoualiAli Жыл бұрын
My pleasure
@kelvindisi
@kelvindisi Жыл бұрын
Subscribed -:) awesome content
@BoualiAli
@BoualiAli Жыл бұрын
Happy to have you here 😁
@samahmahdi5511
@samahmahdi5511 3 ай бұрын
Thank you
@BoualiAli
@BoualiAli 3 ай бұрын
You're welcome
@hamdihassan4916
@hamdihassan4916 Жыл бұрын
Thanks for sharing Ali
@BoualiAli
@BoualiAli Жыл бұрын
My pleasure
@danteextreme3301
@danteextreme3301 Ай бұрын
Nice video. But what if I have a custom token using Auth0, and I want to limit or bind oauth2 login page response to only a specific endpoint? I tried something like that using Spring Security 6.3.0, and I couldn't figure it out yet. /login to my custom JWT and /OAuth2 to be the receptor of the Google login page. When I used oauth2Login, the login page responds even in non-existent endpoints
@user-xb1pu1tj7e
@user-xb1pu1tj7e Ай бұрын
great content
@mounabenhmida970
@mounabenhmida970 Жыл бұрын
Nice video !! can you create a video about web security . a kind of road map or best practises a devloper can follow to make a safe application from different type of attacks
@BoualiAli
@BoualiAli Жыл бұрын
I will create soon a video about software quality and best practices. I will also consider a video about security
@adedayoabdulahi1399
@adedayoabdulahi1399 9 ай бұрын
Linking the link in the description lol Thanks Alibou..
@BoualiAli
@BoualiAli 9 ай бұрын
Happy you liked it!
@spalabutyi
@spalabutyi Жыл бұрын
Great job 👍👍
@BoualiAli
@BoualiAli Жыл бұрын
Happy you liked it
@pateldharmesh1361
@pateldharmesh1361 11 ай бұрын
Thanks. There is one more fantastic tutorial. Get a clear-cut idea of how it works flow-wise and implementation-wise. Can you help or provide some idea how to implement social media login with JWT
@BoualiAli
@BoualiAli 10 ай бұрын
I will try to cover it ASAP
@kvrae8698
@kvrae8698 Жыл бұрын
Great Content 📈
@BoualiAli
@BoualiAli Жыл бұрын
Thanks bro
@OussamaTahiri
@OussamaTahiri Жыл бұрын
Proud of you brother ;)
@BoualiAli
@BoualiAli Жыл бұрын
Thank you so much brother. Happy to know that you still check on me
@vineethkumar9806
@vineethkumar9806 7 ай бұрын
I must say Awesome and you cleared all my problems you deserve the all likes ,subscriptions and shares and reach the great heights in the future so coming to the point will you explain how to stay update of the technologies and for every 6 months spring team changing the methods and a lot so my question is how are you able to stay update with that if you don't mind will you explain this please brother
@BoualiAli
@BoualiAli 3 ай бұрын
I really appreciate the feedback
@manee427
@manee427 Жыл бұрын
Perfect video
@BoualiAli
@BoualiAli Жыл бұрын
Thank you!
@onuraltuntas1064
@onuraltuntas1064 3 ай бұрын
Thanks for the video. ​ Do you have any plans to make video about using both jwt token authentication and identity provider (oauth2) together ?
@BoualiAli
@BoualiAli 3 ай бұрын
keycloak video is coming next week
@tugbakoc379
@tugbakoc379 7 ай бұрын
thank you!!
@BoualiAli
@BoualiAli 3 ай бұрын
welcome
@mallikarjunareddynimmakaya4120
@mallikarjunareddynimmakaya4120 Жыл бұрын
Thank you Ali for neat explanation. Your intellij setup is looking good, may I know which theme and icons pack are you using?
@BoualiAli
@BoualiAli Жыл бұрын
Thanks for the feedback. This is new UI theme from the latest version of intellij
@marcinlesniewski4571
@marcinlesniewski4571 8 ай бұрын
Elegancko
@BoualiAli
@BoualiAli 8 ай бұрын
Happy you liked it
@maximedegres8869
@maximedegres8869 Жыл бұрын
You are great.
@BoualiAli
@BoualiAli Жыл бұрын
Thank youu 🙏
@aa-ip5vo
@aa-ip5vo 4 ай бұрын
how can i add this to my current custom register login with jwt ! and what do i save in the db if i dont have pw for the user
@BoualiAli
@BoualiAli 4 ай бұрын
better use keycloak. check the video in my channel. I will release a new one how to integrate it with spring boot and angular
@toufiklaggoune5972
@toufiklaggoune5972 Жыл бұрын
Good job.
@BoualiAli
@BoualiAli Жыл бұрын
Thanks bro
@ashibindal6644
@ashibindal6644 3 ай бұрын
@BoualiAli where is the follow up video for custom Application authentication using springBoot?
@BoualiAli
@BoualiAli 3 ай бұрын
check the book social network playlist
@mediss3720
@mediss3720 Жыл бұрын
Good content
@BoualiAli
@BoualiAli Жыл бұрын
Really happy you liked it
@GhassenKhalilAti
@GhassenKhalilAti Жыл бұрын
I liked the video and the explanation. Question: How can we control the user wether he's authorized to get ressource or not using the social auth. providers (school case: admin has full access and normal user have standard access) ? Thanks for responding.
@BoualiAli
@BoualiAli Жыл бұрын
This role base auth, You can save the user info locally and based on that you can assign him a role. You can also use your own oauth 2 server like keycloack and there you can assign roles
@mmakblogs
@mmakblogs 6 ай бұрын
Hi, can you provide any solution to integrate OAuth2.0 with existing JWT?
@user-ku7dh7od7i
@user-ku7dh7od7i Жыл бұрын
wonderful video. Best teacher for spring boot. @Bouali Ali could you please make video for gateway + authentication-service(jwt) + other+services. means the user will ask other services through gateway. but gateway will allow or block the request by valider the token from authentication-service i use RestTemplate inside gateway to request authentication-service, but it does not work.
@BoualiAli
@BoualiAli Жыл бұрын
I will publish a video like that soon
@user-ku7dh7od7i
@user-ku7dh7od7i Жыл бұрын
@@BoualiAli t'est le meilleur
@MiguelSilva-ur9xd
@MiguelSilva-ur9xd 7 ай бұрын
when i using google provider. why does it show me "[invalid_id_token] An error occurred while attempting to decode the Jwt: The ID Token contains invalid claims: {iat=date}" ?
@ngozikalu6938
@ngozikalu6938 Жыл бұрын
Thanks always for your easy to understand videos. Quick question: I already have the jwt token authentication where a user signs up and the details are stored on my database, now i want to include the oauth2 authentication, where the user has an option to click on a sign in from google button. Would these two auth mechanisms be configured in thesame bean or they would have seperate beans for each? Also can I read the info of the user from google and save on my db? thanks in anticipation.
@BoualiAli
@BoualiAli Жыл бұрын
You can have them both together. I’m working on a course that covers this two options with an angular frontend
@ngozikalu6938
@ngozikalu6938 Жыл бұрын
@@BoualiAli thanks a lot for responding. awaiting the course.
@davebudah
@davebudah Жыл бұрын
@@BoualiAli would love to see this in Angular implementation too.
@souravpaul6086
@souravpaul6086 Жыл бұрын
Hi @Bouali Ali, this video is so informative and well explained each and every step, Thank you for making this video. Could you please make a video where linkedin and twitter used as social login platform instead of github and google that can be very useful for us. Please make a video on this topic, request from your subscriber
@BoualiAli
@BoualiAli Жыл бұрын
Really happy you liked it Already preparing the content
@souravpaul6086
@souravpaul6086 Жыл бұрын
@@BoualiAli sound awesome ❤️
@maid768
@maid768 10 ай бұрын
Quick question: My app uses the /register route for registering users and requires following fields: name; dob; email; password; weight; goal; In one of your other videos You have for the /register fields only email and password. How would the registering with google work, if I need not only email and password information, but also other information about the user and stroing that in a database
@BoualiAli
@BoualiAli 9 ай бұрын
You request them as scopes and you will receive them in the token
@kareemmosafi2117
@kareemmosafi2117 3 ай бұрын
Hi ali , appreciate your support .. can you update the method for the new spring security and adding it for jwt security ? Thank you
@BoualiAli
@BoualiAli 3 ай бұрын
Updated
@kareemmosafi2117
@kareemmosafi2117 3 ай бұрын
​@@BoualiAli In which video please ?😅
@BoualiAli
@BoualiAli 3 ай бұрын
@@kareemmosafi2117 check the spring security playlist
@User26426
@User26426 3 ай бұрын
Thanks for the video it helped a lot .A question how can one customize the sign in page and thanks
@BoualiAli
@BoualiAli 3 ай бұрын
Wait for the Keycloak video and you will never use another tool
@user-pp3ly1bt9r
@user-pp3ly1bt9r 5 ай бұрын
I have doubt like here like, whats the resource server in this? 1. Spring Boot Application 2. google/github resorces server. For OAuth usually the providers have the resources and these are authorized by the users so that the client application can access. Can you help me out?
@electricityaplicationtv8062
@electricityaplicationtv8062 7 ай бұрын
Thank you for sharing. I have som questions: after I login by gmail successfully, How can I use the credentials to access other services in microservices? Do I need create new access token to return to frontend? how to generate access token after login successfully?
@manospat1066
@manospat1066 10 ай бұрын
Great video Ali. But I don't understand something, we say that resource server is our backend app, the client (the one who wants access to the resource uri) is the browser, and authorization server is GitHub. But what exactly is the role of the application we created in github? Why we had to create this app and what is the relation with this app and our spring boot backend app? Also I didn't quite catch the clientId- secretId role. Thanks
@BoualiAli
@BoualiAli 9 ай бұрын
in order to be able to use Github as an ID provider
@mdmoshiurrahman1065
@mdmoshiurrahman1065 6 ай бұрын
Is it possible to build a service to support multiple external authorization services and then the service itself acts as an authorization service so that there is always only one auth server for the multiple oAuth clients?
@eshabirwadkar1542
@eshabirwadkar1542 5 ай бұрын
I have to add this in my existing project , so when I add the dependency for oauth resource server in my Pom file it shows not found. Can you tell me how can I add ?
@aa-ip5vo
@aa-ip5vo 4 ай бұрын
Hello i have register login with jwt now i want to add also social login can i make the user login and generate for him jwt token after successful login? and in the db what do i save if i dont have password since social login doesnt require pw hope you help and thanks.
@vishnurohith6069
@vishnurohith6069 Жыл бұрын
Where are you creating the front end page in this one,can you please explain it
@BoualiAli
@BoualiAli Жыл бұрын
That page is automatically generated by spring
@s3262301
@s3262301 9 ай бұрын
Thank you very much! Is it possible to make a video for setting up Signle Sign On auth server (SSO) with social login?
@BoualiAli
@BoualiAli 9 ай бұрын
Soon
@m_jdm357
@m_jdm357 6 ай бұрын
I can't integrate OAuth2 in a Rest api secured with JWT.
@TitusAyamga
@TitusAyamga 4 ай бұрын
i cant use the .Oauth2Login() in the security filter. please is there a new way to use Oauth in spring?
@BoualiAli
@BoualiAli 3 ай бұрын
check today's video for a detailed answer
@ikennashonowo9250
@ikennashonowo9250 Жыл бұрын
Please do a .video on Spring Security and Azure SSO.
@BoualiAli
@BoualiAli Жыл бұрын
I will try to
@fipabrate
@fipabrate Жыл бұрын
Very nice video. But what if you have for example react app on frontend/client that has regular form login with also social login.
@BoualiAli
@BoualiAli Жыл бұрын
This is the next Oauth 2.0 video How to implement fullstack login
@fipabrate
@fipabrate Жыл бұрын
@@BoualiAli looking forward to it!
@jesper2455
@jesper2455 Жыл бұрын
@@BoualiAli Also looking forward to that!
@aminebitri8667
@aminebitri8667 Жыл бұрын
excellent as always ! can we use DaoAuthenticationProvider with Oauth 2 ? i mean 2 types of authentication
@BoualiAli
@BoualiAli Жыл бұрын
The Oauth 2 is jwt based auth too. But the users are not stored on your side but on the auth provider side. I will create soon a video about keycloak and you will understand the oauth2 process much better
@simpleman8253
@simpleman8253 Жыл бұрын
Could you please show different ways of applying or using of "rememberMe" in spring boot 3 (spring security 6)?
@BoualiAli
@BoualiAli Жыл бұрын
I will make a video for that
@poragjyoti4190
@poragjyoti4190 Жыл бұрын
Naxt: Please make a video on If someone register in our app using social account then how that user details will be stored in our database.
@BoualiAli
@BoualiAli Жыл бұрын
Coming soon
@mohamedharounneffati9978
@mohamedharounneffati9978 Жыл бұрын
Question : at 29:00 , why you choose desktop app and not web application ?
@BoualiAli
@BoualiAli Жыл бұрын
we app is M2M
@khalilbouali3480
@khalilbouali3480 10 ай бұрын
thanks a lot ! this was very helpful but I have a couple of question, how can you use a custom login form for OAuth2 and how can you combine OAuth2 and JWT mechanism ? Thanks a lot in advance
@BoualiAli
@BoualiAli 10 ай бұрын
Coming soon
@nezyha
@nezyha 11 ай бұрын
How can i make so that a frontend application can access the authorized backend data? I.e we authorize through backend login but then show this data in our front end?
@BoualiAli
@BoualiAli 10 ай бұрын
Just redirect the frontend to the login url
@nezyha
@nezyha 10 ай бұрын
@@BoualiAli so for example I have a end point @3000 for front end and auth page @8000 local host I redirect and login. It gets authorized for me but not the front end point @3000 I'm not sure if I'm explaining it that great and there may be a gap in my knowledge but that's the issue I'm facing
@croydon21H
@croydon21H 11 ай бұрын
Can you add logout feature (say from react by using fetch)
@BoualiAli
@BoualiAli 10 ай бұрын
soon
@phuquytran7912
@phuquytran7912 Жыл бұрын
Hello sir, you're doing great, in the next video, could you guild us how to build our own Auth2 server in Spring, and every time a resource server receives a request, resource server will talk to Auth2 sever to check if token is valid.
@BoualiAli
@BoualiAli Жыл бұрын
Happy you liked it I will for sure
@davidanwar6996
@davidanwar6996 11 ай бұрын
Amazing sir, i follow your video about spring security. How can i add the capability login social media to Spring security with jwt before?
@BoualiAli
@BoualiAli 10 ай бұрын
I will publish it soon
@davidanwar6996
@davidanwar6996 10 ай бұрын
@@BoualiAli thank you sir. I wait your video
@chetan1149
@chetan1149 Жыл бұрын
Great tutorial, what about open id connect? how to do authentication?
@BoualiAli
@BoualiAli Жыл бұрын
I need to try that first and then I will let you know
@khalifatwaha4212
@khalifatwaha4212 Жыл бұрын
@BoualiAli Thank you for this great video. I want to ask that is there a way this can be used to the app itself(Like the JWT) without going to the third-party app like facebook or github? Please tell me how.
@BoualiAli
@BoualiAli Жыл бұрын
If I correctly understood you question, YES it is possible but you need to implement your own Auth server / resource server
@amitgrover1992
@amitgrover1992 Жыл бұрын
please create a video on OAuth 2.0 using Azure active directory using Graph API
@BoualiAli
@BoualiAli Жыл бұрын
Will try to
@kanapeczkaaaa
@kanapeczkaaaa 10 ай бұрын
is there any difference between making spring boot project on spring initializr website and doing that inside intellij? In intellij we can also use spring initializr
@BoualiAli
@BoualiAli 9 ай бұрын
No difference. Both are calling the same API
@alizahedi2289
@alizahedi2289 Жыл бұрын
Thanks for this video. If its for the first time that client is visiting this endpoint and needs to have a user account, can we create a user account with OAuth2 login? And if so, how to do that?
@BoualiAli
@BoualiAli Жыл бұрын
The user should create an account on (Github, facebook, ...) and the use it. Your application should not really care about that. It is totally up to the client to do that
@sebastienchoquene8227
@sebastienchoquene8227 Жыл бұрын
Hello. Thanks for the video. I clone this project in my intellij and, with my google account, request loop on google oauth authentication and never give the controller answer "Hell OAuth2". It's a problem of ... something but what ? console app config ?.
@BoualiAli
@BoualiAli Жыл бұрын
did you change the credentials?
@sebastienchoquene8227
@sebastienchoquene8227 Жыл бұрын
@@BoualiAli Sorry do not answer before. I must have made a mistake but I don't know what mistake. I started from scratch and it worked.
@simopr09
@simopr09 Жыл бұрын
how to configure our own oauth (other than Google, Github, Facebook)? Did you make a video about that? thanks
@BoualiAli
@BoualiAli Жыл бұрын
I will create one about keycloack soon
@parunev
@parunev Жыл бұрын
When can we expect a video with both OAuth2 and JWT Token? I'm stuck with this part and I can't seem to find a way to solve it
@BoualiAli
@BoualiAli Жыл бұрын
I will try to record it ASAP
@parunev
@parunev Жыл бұрын
@@BoualiAli Thank you for your time! Can't wait!
@sigitarifanggoro1699
@sigitarifanggoro1699 10 ай бұрын
Currently I'm using spring boot 2 version, Is this tutorial applicable for me?
@BoualiAli
@BoualiAli 10 ай бұрын
Yes
@spitefol5504
@spitefol5504 Жыл бұрын
Vscode is saying basically everything in SecurityConfig is deprecated
@BoualiAli
@BoualiAli Жыл бұрын
Personally, I don't consider VSC as the best IDE for Java development. The deprecations you see might be valid if you are using Spring boot 3.1 otherwise you can ignore them for the moment
@chetan1149
@chetan1149 Жыл бұрын
this code will not work with spring 2.7.1????
@BoualiAli
@BoualiAli Жыл бұрын
It should work. But take into account some changes maybe I never tried using 2.7
@AhmedZahranDEV
@AhmedZahranDEV Жыл бұрын
can we use oauth2 with authorization code grant type with native mobile app if yes should it make sense that mobile app redirect us to the authorization server login page?
@BoualiAli
@BoualiAli Жыл бұрын
Yes you can. Yes it makes sense (already exists on many mobile apps)
Spring boot 3.0 - Secure your API with JWT Token [2023]
2:01:46
Bouali Ali
Рет қаралды 147 М.
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 7 МЛН
An Illustrated Guide to OAuth and OpenID Connect
16:36
OktaDev
Рет қаралды 577 М.
Complete Spring Security with JWT Authentication | Spring Security 6 | Securing Spring Boot
3:45:03
Spring Tips: The Spring Authorization Server
22:21
SpringDeveloper
Рет қаралды 16 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,7 МЛН
OAuth2 and Google to Protect Your Spring Security and Angular Application
48:12
The Dev World - by Sergio Lema
Рет қаралды 10 М.