00:02 Spring Cloud Security cho OAuth2 Đăng nhập bằng Google bằng Spring Boot. 01:45 Định cấu hình Đăng nhập Google OAuth2 bằng Spring Boot 03:11 Tạo dự án mới trong Spring Cloud Security bằng OAuth2 Đăng nhập Google 04:41 Video này trình bày cách triển khai Đăng nhập Google OAuth2 bằng Spring Boot. 06:12 Bảo mật đám mây mùa xuân với Đăng nhập Google OAuth2 07:55 Bảo mật đám mây mùa xuân và Đăng nhập Google OAuth2 09:38 OAuth2 Đăng nhập Google bằng Spring Boot 11:12 Định cấu hình Đăng nhập Google bằng Spring Boot bằng OAuth2 Crafted by Merlin AI.
Nice concept sir. If you explain authorization server in oauth2 also very helpful. Like how token is generated internally and all. Here we are dependent on google or fb, but in an enterprise level it will have own token genate application. I came across many channels in UA-cam, not able to find the same. Covering basic concepts also enough sir.
you have to use advance oauth2 customization read spring oauth2 document. I have also check few months before to customize own token instead of using google or fb token , so I got only one example over internet that guy using SpringBoot oauth2 + Angular project. But there is no video for token customization token.
Hi Basant, Could you please make a video on Spring boot with rest api using current version of OAuth 2 and MySQL? As your way is very simple and to be easy to understand. Thanks in advance.
You are awesome. I used Spring 3.1.1 and wrote my code as: @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .authorizeHttpRequests(authorize -> authorize .anyRequest().authenticated()) .oauth2Login(Customizer.withDefaults()); return http.build(); And it worked well.
Suppose if I have more apis in my system(all crud) , how to access those apis ? in your other spring videos you use preauthorize for that do I need to do that? How can we do that please share reference
Very well explained...I have tried the same...but getting this error: [oidc_provider_not_configured] An OpenID Connect Authentication Provider has not been configured. Check to ensure you include the dependency 'spring-security-oauth2-jose'....................Would please let me know why I am getting this error. I have configured whatever u explained..
@@Javatechie this error i m getting when asking for gmail id and pwd , then instead of redirecting to my rest api it's showing this error....just another question , can I implement oauth2 for any enterprise level application , for my client...then for this implementation what will be the gmail address , shall I ask my client to provide this gmail address and pwd. That will be enough for configuration in different env like dev, pre prod and prod.? Thanks in advance .
Where did you mention in the code that it should redirct the every request to google authentication page? I don't see you comfigured any url in code other than in google console.
How does google redirect to locahost? localhost refers to current host .. so if control has gone to google.. localhost has no meaning over the network... this part i didn't understand
Buddy in local app only we are giving redirect ui and in Google we have specified login url with/auth or /login with port where our app is up and running
@@Javatechie I really love watching your vidoes, i still didn't understand it. OurLocalApplication ----------sendsRequestToGoogleForAuthentication------->(Google server) and it does authnetication ----> here, localhost would refer to (google server itself)... so how the control is going back to OurLocalApplication server (that is, the server where our application is running)
I used Google auth since 2 months... Automatically it get stop ..login button redirect to again login page... And data also not storing in database How can I contact you sir...m
Hi, thanks for the video. I was wondering, if I have a frontend application lets say in angular, and I can get a GOOGLE token from that SPA, how should I configure my Springboot backend so it just validate the token that the frontend is sending me via headers: Authorization Bearer
Hi Sir I am getting the [invalid_id_token] An error occurred while attempting to decode the Jwt: The ID Token contains invalid claims: {iat=2021-11-03T12:13:28Z} although implement the same code as you---Plz help me what should I do ? thanks
You are explaining the concept as well as practical way of implementation... best explanation
00:02 Spring Cloud Security cho OAuth2 Đăng nhập bằng Google bằng Spring Boot.
01:45 Định cấu hình Đăng nhập Google OAuth2 bằng Spring Boot
03:11 Tạo dự án mới trong Spring Cloud Security bằng OAuth2 Đăng nhập Google
04:41 Video này trình bày cách triển khai Đăng nhập Google OAuth2 bằng Spring Boot.
06:12 Bảo mật đám mây mùa xuân với Đăng nhập Google OAuth2
07:55 Bảo mật đám mây mùa xuân và Đăng nhập Google OAuth2
09:38 OAuth2 Đăng nhập Google bằng Spring Boot
11:12 Định cấu hình Đăng nhập Google bằng Spring Boot bằng OAuth2
Crafted by Merlin AI.
I like your vides all are crispy and clear for the learners.💯
thx man! you are the best! 2nd tutorial and feeling more comprfotabe with Springboot!
Sir ,you always wins our heart by providing such a wonderful content
Very good explanation boss love it !
Nice concept sir. If you explain authorization server in oauth2 also very helpful. Like how token is generated internally and all. Here we are dependent on google or fb, but in an enterprise level it will have own token genate application. I came across many channels in UA-cam, not able to find the same. Covering basic concepts also enough sir.
you have to use advance oauth2 customization read spring oauth2 document. I have also check few months before to customize own token instead of using google or fb token , so I got only one example over internet that guy using SpringBoot oauth2 + Angular project. But there is no video for token customization token.
@@TalhaAnsari-y5ithank you for reply. can you ping that example link please
You are doing wonderful job man ... Great explanation 👍
super way of explaining stuff. thanks.
I love the concepts u cover and great explanation ,
Can u also work on postman for spring boot
Same example you want me to test in postman
Yes thanks
very useful and nice explanation
I am getting Access Denied error. Could you pls tell what am I missing. Or make a latest video without using WSAC in secrityConfig
Please do a video , how to clear Oath2 session. with custom logout url.
Nice content 👍
Hi Basant,
Thanks for the neat explanation. One doubt how to get redirect URL at 2:29 ?
That is the standard Uri suffix provided by Google
Short and easy
Thank you for this practical tutorial.
Could you please expand the video tutorial to use Angular in the frontend?
Thank you.
Okay i will
@@Javatechie Thank you. I am eagerly waiting.
Just awesome!
Hi Java Techie. Do you have also an example which uses Okta as IDP to be able to login to other social login sites? Thank you.
No buddy
Hi Basant,
Could you please make a video on Spring boot with rest api using current version of OAuth 2 and MySQL? As your way is very simple and to be easy to understand. Thanks in advance.
Sure buddy I will do that.just for confirmation you are expecting to create our own Authorization server using spring boot right?
@@Javatechie Yes..thank you so much
@@Javatechie can you also create google sso using keycloak in slringboot?
You are awesome. I used Spring 3.1.1 and wrote my code as:
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests(authorize -> authorize
.anyRequest().authenticated())
.oauth2Login(Customizer.withDefaults());
return http.build();
And it worked well.
Suppose if I have more apis in my system(all crud) , how to access those apis ? in your other spring videos you use preauthorize for that do I need to do that? How can we do that please share reference
Websecurityconfigureadpter, I can't able extend... Sir what need to do
That's deprecated buddy you need to use spring security filter chain. I will share the link In fact I will upload a new Spring security config videos
Please refer below link ua-cam.com/video/R76S0tfv36w/v-deo.html
its really helpfull😊
Spring Security now doesn't support WebSecurityConfigurerAdapter, please remove that part.
The video is old
thanks for this info
If I don't want the login form to appear at localhost:8080/ but it only appears at localhost:8080/loginGG, what should I do? Can you help me?
In config itself change the base login url
Very well explained...I have tried the same...but getting this error: [oidc_provider_not_configured] An OpenID Connect Authentication Provider has not been configured. Check to ensure you include the dependency 'spring-security-oauth2-jose'....................Would please let me know why I am getting this error. I have configured whatever u explained..
What spring boot version you are using
@@Javatechie I have used 2.5.1.
@@Javatechie this error i m getting when asking for gmail id and pwd , then instead of redirecting to my rest api it's showing this error....just another question , can I implement oauth2 for any enterprise level application , for my client...then for this implementation what will be the gmail address , shall I ask my client to provide this gmail address and pwd. That will be enough for configuration in different env like dev, pre prod and prod.? Thanks in advance .
Where did you mention in the code that it should redirct the every request to google authentication page? I don't see you comfigured any url in code other than in google console.
Its there in application.yml and java config class
Sir, what happened to WebFlux content? I was looking forward to the whole series
Yes I will continue that
I am also waiting sir, for the same
Good work
How I can implement all Oauth2 (facebook, github and google) in one project?
Hey Basant, I;m having issue with redirecting URL after signing in with my credentials. Please reply.
It's not redirecting to the Google oauth server?
Wow excellent
thank tou so much sir
How does google redirect to locahost? localhost refers to current host .. so if control has gone to google.. localhost has no meaning over the network... this part i didn't understand
Buddy in local app only we are giving redirect ui and in Google we have specified login url with/auth or /login with port where our app is up and running
@@Javatechie I really love watching your vidoes, i still didn't understand it. OurLocalApplication ----------sendsRequestToGoogleForAuthentication------->(Google server) and it does authnetication ----> here, localhost would refer to (google server itself)... so how the control is going back to OurLocalApplication server (that is, the server where our application is running)
What if I want to use a frontend application like react and then do these authentication can you create a tutorial for it then?
Hey,
I did the same thing, but for me, it does not redirect, it just goes to the message instead of redirecting to google login.
any idea why?
I have added scope for email and profile info. can you tell me how add phone number with that too
Thank you very very much. If it is not too much, how I can do POST call? Once again, thank you very very much.
There is no difference in http methods before proces your http methods it will first delegates request for authentication and Authorization
I used Google auth since 2 months...
Automatically it get stop ..login button redirect to again login page...
And data also not storing in database
How can I contact you sir...m
Hi, thanks for the video. I was wondering, if I have a frontend application lets say in angular, and I can get a GOOGLE token from that SPA, how should I configure my Springboot backend so it just validate the token that the frontend is sending me via headers: Authorization Bearer
Looking for this, did you find any pointers for this
Nice work man. I have a question how can we get the email address?
Thanks in advance
You can get it from principal object , I shown in end of video
Hi Sir I am getting the [invalid_id_token] An error occurred while attempting to decode the Jwt: The ID Token contains invalid claims: {iat=2021-11-03T12:13:28Z} although implement the same code as you---Plz help me what should I do ? thanks
Please make video on Logout functionality
Hi do you have a tutoriao for google sso using keycloak in springboot?
Hii.. How to secure all rest api in spring boot Microservice with okta .. Without okta login how to restrict access.. Please can suggest
Please checkout my okta tutorial
Awesome bro
nice tutorial
Hi Basant
Can you put together Facebook google and github login in one example
Yes I will put together in single playlist today you can find in spring cloud security okay
@@Javatechie i mean in a single application example how to put these three
@@sainikhil4406 okay got it , I will give a try
@@Javatechie Tq brother
Thank
can you have both form login and social login?
Yes
Great, but I just missed how to loggout
Configuration required for logout just change in config file
How can I use this on a flutter app?
Can you do this with postman?
Sir please make on video Spring Boot Oauth2 + Angular. Thank You
how can we retrieve user's email from principal user ?
Check getter method of Principal object
How can fatch user data from google server?
From principal object you can extract user data
@@Javatechie oh thanks 👍
@Websecurityconfigureradapater not showing
Please check this ua-cam.com/video/YnhbTlCCVLc/v-deo.html
how to logout from that ?
How can I contact you ?
Javatechie4u@gmail.com
websecurityconfigureradapter is deprecated
Please check this change logs ua-cam.com/video/YnhbTlCCVLc/v-deo.html
Is this free or paid??
Free for certain time after that it's chargeable