Spring Cloud Security | OAuth2 Google Sign In using Spring Boot | JavaTechie

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 105

  • @prithvik8448
    @prithvik8448 3 роки тому +3

    You are explaining the concept as well as practical way of implementation... best explanation

  • @inhtruongvu7618
    @inhtruongvu7618 11 місяців тому +3

    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.

  • @ramanamurtykarri1737
    @ramanamurtykarri1737 Рік тому +1

    I like your vides all are crispy and clear for the learners.💯

  • @ignaciobriones3769
    @ignaciobriones3769 2 роки тому +1

    thx man! you are the best! 2nd tutorial and feeling more comprfotabe with Springboot!

  • @tanujkumaragrawal4756
    @tanujkumaragrawal4756 3 роки тому +1

    Sir ,you always wins our heart by providing such a wonderful content

  • @PriyanshuVerma-kv8lp
    @PriyanshuVerma-kv8lp Місяць тому

    Very good explanation boss love it !

  • @sreesri8492
    @sreesri8492 3 роки тому +2

    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.

    • @TalhaAnsari-y5i
      @TalhaAnsari-y5i 3 роки тому

      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.

    • @sreesri8492
      @sreesri8492 3 роки тому

      @@TalhaAnsari-y5ithank you for reply. can you ping that example link please

  • @rkshkumar90
    @rkshkumar90 3 роки тому +1

    You are doing wonderful job man ... Great explanation 👍

  • @nirmesh44
    @nirmesh44 3 роки тому +1

    super way of explaining stuff. thanks.

  • @michealabhishek8905
    @michealabhishek8905 3 роки тому +1

    I love the concepts u cover and great explanation ,
    Can u also work on postman for spring boot

  • @jskr456
    @jskr456 3 роки тому +1

    very useful and nice explanation

  • @sreelathavk4450
    @sreelathavk4450 8 місяців тому +1

    I am getting Access Denied error. Could you pls tell what am I missing. Or make a latest video without using WSAC in secrityConfig

  • @gameofnoobgon7199
    @gameofnoobgon7199 3 роки тому +1

    Please do a video , how to clear Oath2 session. with custom logout url.

  • @pratishrutipanda6461
    @pratishrutipanda6461 3 роки тому +3

    Nice content 👍

  • @narendrakumariitb
    @narendrakumariitb 2 роки тому +1

    Hi Basant,
    Thanks for the neat explanation. One doubt how to get redirect URL at 2:29 ?

    • @Javatechie
      @Javatechie  2 роки тому +2

      That is the standard Uri suffix provided by Google

  • @ujjwalpandey4721
    @ujjwalpandey4721 Рік тому +1

    Short and easy

  • @dominicencho4179
    @dominicencho4179 Рік тому +1

    Thank you for this practical tutorial.
    Could you please expand the video tutorial to use Angular in the frontend?
    Thank you.

  • @rishikeshkmr
    @rishikeshkmr 3 роки тому +1

    Just awesome!

  • @gem3023
    @gem3023 2 роки тому +1

    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.

  • @shyamgupta229
    @shyamgupta229 2 роки тому +1

    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.

    • @Javatechie
      @Javatechie  2 роки тому +1

      Sure buddy I will do that.just for confirmation you are expecting to create our own Authorization server using spring boot right?

    • @shyamgupta229
      @shyamgupta229 2 роки тому +1

      @@Javatechie Yes..thank you so much

    • @Pain-qu5nr
      @Pain-qu5nr Рік тому

      @@Javatechie can you also create google sso using keycloak in slringboot?

  • @amanuellebassi7294
    @amanuellebassi7294 Рік тому +1

    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.

  • @siddhantthorat3269
    @siddhantthorat3269 Місяць тому

    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

  • @ashishmahanta7963
    @ashishmahanta7963 Рік тому +2

    Websecurityconfigureadpter, I can't able extend... Sir what need to do

    • @Javatechie
      @Javatechie  Рік тому +2

      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

    • @Javatechie
      @Javatechie  Рік тому +1

      Please refer below link ua-cam.com/video/R76S0tfv36w/v-deo.html

  • @TanujKumarSaini
    @TanujKumarSaini Рік тому +1

    its really helpfull😊

  • @souravkumar1608
    @souravkumar1608 11 місяців тому +2

    Spring Security now doesn't support WebSecurityConfigurerAdapter, please remove that part.

  • @ankit7anku
    @ankit7anku 2 роки тому +1

    thanks for this info

  • @dangxuanthaii
    @dangxuanthaii Рік тому +1

    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?

    • @Javatechie
      @Javatechie  Рік тому

      In config itself change the base login url

  • @rajnishsasmal
    @rajnishsasmal 3 роки тому +1

    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
      @Javatechie  3 роки тому

      What spring boot version you are using

    • @rajnishsasmal
      @rajnishsasmal 3 роки тому

      @@Javatechie I have used 2.5.1.

    • @rajnishsasmal
      @rajnishsasmal 3 роки тому

      @@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 .

  • @srinivasyadav9925
    @srinivasyadav9925 3 роки тому +1

    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.

    • @Javatechie
      @Javatechie  3 роки тому

      Its there in application.yml and java config class

  • @vishalmatam
    @vishalmatam 3 роки тому +1

    Sir, what happened to WebFlux content? I was looking forward to the whole series

  • @ahmedlist4883
    @ahmedlist4883 3 роки тому

    Good work
    How I can implement all Oauth2 (facebook, github and google) in one project?

  • @riddhidasgupta4021
    @riddhidasgupta4021 11 місяців тому +1

    Hey Basant, I;m having issue with redirecting URL after signing in with my credentials. Please reply.

    • @Javatechie
      @Javatechie  11 місяців тому

      It's not redirecting to the Google oauth server?

  • @prithvik8448
    @prithvik8448 3 роки тому +1

    Wow excellent

  • @prashantvyas3407
    @prashantvyas3407 2 роки тому +1

    thank tou so much sir

  • @vipinkoul595
    @vipinkoul595 Рік тому +1

    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

    • @Javatechie
      @Javatechie  Рік тому

      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

    • @vipinkoul595
      @vipinkoul595 Рік тому

      @@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)

  • @sanketkalokhe3548
    @sanketkalokhe3548 4 місяці тому

    What if I want to use a frontend application like react and then do these authentication can you create a tutorial for it then?

  • @Jonsy
    @Jonsy Рік тому

    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?

  • @priyashiroy6815
    @priyashiroy6815 2 місяці тому

    I have added scope for email and profile info. can you tell me how add phone number with that too

  • @birbir969
    @birbir969 3 роки тому +1

    Thank you very very much. If it is not too much, how I can do POST call? Once again, thank you very very much.

    • @Javatechie
      @Javatechie  3 роки тому +1

      There is no difference in http methods before proces your http methods it will first delegates request for authentication and Authorization

  • @riteshjadhav1423
    @riteshjadhav1423 2 роки тому

    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

  • @andresfelipecardonagutierr7301
    @andresfelipecardonagutierr7301 3 роки тому +1

    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

    • @sripadan
      @sripadan 11 місяців тому

      Looking for this, did you find any pointers for this

  • @BraveManLivingInStrangeWorld
    @BraveManLivingInStrangeWorld 3 роки тому +1

    Nice work man. I have a question how can we get the email address?
    Thanks in advance

    • @Javatechie
      @Javatechie  3 роки тому

      You can get it from principal object , I shown in end of video

  • @DeepakKumar-ew1zw
    @DeepakKumar-ew1zw 3 роки тому

    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

  • @memsofgamers9479
    @memsofgamers9479 11 місяців тому

    Please make video on Logout functionality

  • @Pain-qu5nr
    @Pain-qu5nr Рік тому

    Hi do you have a tutoriao for google sso using keycloak in springboot?

  • @PravinPatil02
    @PravinPatil02 3 роки тому +1

    Hii.. How to secure all rest api in spring boot Microservice with okta .. Without okta login how to restrict access.. Please can suggest

    • @Javatechie
      @Javatechie  3 роки тому

      Please checkout my okta tutorial

  • @repakanagesh7615
    @repakanagesh7615 3 роки тому +1

    Awesome bro

  • @mdimranislam9267
    @mdimranislam9267 3 роки тому +1

    nice tutorial

  • @sainikhil4406
    @sainikhil4406 3 роки тому +1

    Hi Basant
    Can you put together Facebook google and github login in one example

    • @Javatechie
      @Javatechie  3 роки тому

      Yes I will put together in single playlist today you can find in spring cloud security okay

    • @sainikhil4406
      @sainikhil4406 3 роки тому

      @@Javatechie i mean in a single application example how to put these three

    • @Javatechie
      @Javatechie  3 роки тому

      @@sainikhil4406 okay got it , I will give a try

    • @sainikhil4406
      @sainikhil4406 3 роки тому +1

      @@Javatechie Tq brother

  • @jerry-tb9vk
    @jerry-tb9vk Рік тому +1

    Thank

  • @sanduvelea112
    @sanduvelea112 2 роки тому +1

    can you have both form login and social login?

  • @AlexanderCumbalRojas
    @AlexanderCumbalRojas 2 роки тому +1

    Great, but I just missed how to loggout

    • @Javatechie
      @Javatechie  2 роки тому

      Configuration required for logout just change in config file

  • @RamazanOzerr
    @RamazanOzerr 4 місяці тому

    How can I use this on a flutter app?

  • @NishantTaletiya
    @NishantTaletiya 7 місяців тому

    Can you do this with postman?

  • @TalhaAnsari-y5i
    @TalhaAnsari-y5i 3 роки тому

    Sir please make on video Spring Boot Oauth2 + Angular. Thank You

  • @janyajoshi
    @janyajoshi 2 роки тому +1

    how can we retrieve user's email from principal user ?

    • @Javatechie
      @Javatechie  2 роки тому

      Check getter method of Principal object

  • @sourabhfulmali3923
    @sourabhfulmali3923 3 роки тому +1

    How can fatch user data from google server?

  • @kugelblitz3244
    @kugelblitz3244 10 місяців тому

    @Websecurityconfigureradapater not showing

    • @Javatechie
      @Javatechie  10 місяців тому

      Please check this ua-cam.com/video/YnhbTlCCVLc/v-deo.html

  • @prakash36g
    @prakash36g Рік тому

    how to logout from that ?

  • @krk9384
    @krk9384 3 роки тому +1

    How can I contact you ?

  • @AravindA-gz3fk
    @AravindA-gz3fk 6 місяців тому

    websecurityconfigureradapter is deprecated

    • @Javatechie
      @Javatechie  6 місяців тому

      Please check this change logs ua-cam.com/video/YnhbTlCCVLc/v-deo.html

  • @riteshjadhav1423
    @riteshjadhav1423 2 роки тому +1

    Is this free or paid??

    • @Javatechie
      @Javatechie  2 роки тому

      Free for certain time after that it's chargeable