How to integrate AWS Cognito with Google Social login?

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • Setup Google as a Social Identity Provider in AWS Cognito.
    #openid #identity #iam #security #sso #aws #amazonwebservices #cognito #google #awscognito #amazoncognito #sociallogin #socialmedia #social #googlelogin #googlesignin #signin
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 56

  • @securityinaction1018
    @securityinaction1018  ปีที่แล้ว +1

    Please subscribe to this channel for regular updates th-cam.com/channels/EEayyyCrJO94FYlzF0NLTg.html
    Thank You for the support.

  • @CaroToeic
    @CaroToeic ปีที่แล้ว +1

    very good, tks
    hope i can see more videos from your channel in the future

  • @johngrant7197
    @johngrant7197 ปีที่แล้ว +6

    the audio is pretty bad at times. its like you're covering up the mic.

  • @botorocho
    @botorocho ปีที่แล้ว +1

    Hi! excellent video I'm already subscribed

  • @user-se6mu3pu5e
    @user-se6mu3pu5e 6 หลายเดือนก่อน

    Excellent walkthrough

  • @user-sj9oh1vv8w
    @user-sj9oh1vv8w 7 หลายเดือนก่อน

    This was really helpful, thank you!

    • @securityinaction1018
      @securityinaction1018  7 หลายเดือนก่อน

      Glad it was helpful! Please subscribe to support the channel. Thank you!!

  • @user-mq5vi9ju2s
    @user-mq5vi9ju2s 10 หลายเดือนก่อน

    How to do the other siginin as well , like if the user doesn't want to use the google sigin and wants to use the email and password , Do we need to create the separate userpool for this ???
    Is this a better way then using both separately ??

    • @securityinaction1018
      @securityinaction1018  10 หลายเดือนก่อน

      You don't have to create a separate user pool. You can enable Cognito user pool as one of the identity providers in the client app configuration along with Google sign-in. Hosted UI login page will show both username / password text field and sign-in with Google button.

  • @user-ex8vj4qe7n
    @user-ex8vj4qe7n 2 หลายเดือนก่อน

    What an awesome video! Thank you
    Would you mind to create a video to share with us about how to use aws cognito login with desktop application(ex: electron js or any other framework) ?

    • @securityinaction1018
      @securityinaction1018  2 หลายเดือนก่อน +1

      Thank you!!
      I need to check that. As long as desktop app can open some inline browser, I think same flow should work.
      Please like, subscribe & share!! Thanks in advance.

  • @meghanyao8906
    @meghanyao8906 3 หลายเดือนก่อน

    super helpful

    • @securityinaction1018
      @securityinaction1018  3 หลายเดือนก่อน

      Thank You!!
      Please like, subscribe & share!! Thanks in advance.

  • @jinyoungjo366
    @jinyoungjo366 ปีที่แล้ว

    hi is it possilbe to know when.i use authorization_code Oauth flow type instead of Implicit grant?

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว

      You can use authorization code flow. I was using implicit grant only for the purpose of demo. implicit grant should never be used for any application integration in production. It is ok to use for demo purpose or to learn how a particular feature works.

  • @ChiranjeebJena
    @ChiranjeebJena ปีที่แล้ว

    i have implemented it. But when i am trying to login for the 2nd time, it is not showing the user selection page. instead it takes the last logged in user.
    how to force it to show the user selection page every time.
    as i can see you are clearing cookies every time. can i do that in client too...

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว

      I don't think it is possible at this point of time. By default, Google will reuse the session of the logged in user. In this forum stackoverflow.com/questions/37711665/forcing-a-user-to-choose-an-account-via-google-oauth2, it says there is an option to pass a prompt parameter. But, Cognito doesn't support the option of passing a prompt parameter.

  • @Jameel.shaik5858
    @Jameel.shaik5858 ปีที่แล้ว

    what if i want this to use by custom page with out using hostedui what is the approach how should i integrate

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว

      You can check out these docs for custom authentication flow with a custom UI. docs.amplify.aws/lib/auth/getting-started/q/platform/js/
      docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html

  • @thundergod-tp4es
    @thundergod-tp4es ปีที่แล้ว

    If i have multiple service running in aws,can i use this to authenticate all service

  • @dvirsnappy
    @dvirsnappy 10 หลายเดือนก่อน

    @securityinaction1018 thank you! can you please tell how to map attribute updated_at ? thanks

    • @securityinaction1018
      @securityinaction1018  10 หลายเดือนก่อน

      Do you want to map the updated_at claim of Google ID token to a Cognito user attribute?

  • @monalipatel6655
    @monalipatel6655 ปีที่แล้ว

    How can we add this sign in button with react app? From react app i need to login with google and add user to cognito

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว

      You can integrate the react app with Cognito using OpenID Connect. Cognito will show the sign in button for Google and create a profile when the user successfully logs in using Google

    • @monalipatel6655
      @monalipatel6655 ปีที่แล้ว

      @@securityinaction1018 I have created auth with aws amplify in react. I got access token and token id but not getting refresh token. How can I get refresh token?

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว

      I am sure refresh token should be available. Can you try hitting the token endpoint directly using a curl command or postman and validate the response?

  • @officework8812
    @officework8812 5 หลายเดือนก่อน

    great video.
    now I have created custom signup and login forms, and for both the forms I want to place social login buttons.
    I tried many things but failed, how can I connect the social login with the custom buttons

    • @securityinaction1018
      @securityinaction1018  5 หลายเดือนก่อน

      Thank you!
      The button should link to Cognito's authorization endpoint. Refer this documentation docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html.
      If you want the button to redirect to Google, you can pass identity_provider=Google as a query parameter along with other parameters in the authorization endpoint. In this case, Cognito will not show the hosted UI login page. Instead it will redirect to Google for authentication.
      Please subscribe and support this channel. Thanks in advance!!

  • @vivekgowda1576
    @vivekgowda1576 3 หลายเดือนก่อน

    Thanks for the great tutorial. There is a scenario where the user should create by Google in cognito. we have created user ( manually or API ). we just have to do Google SSO on existing users. Is this possible?

    • @vivekgowda1576
      @vivekgowda1576 3 หลายเดือนก่อน

      @securityinaction1018 Hi, could you please look on this? I do not want create user name with google _random number . I want to create my users and the do auth

    • @securityinaction1018
      @securityinaction1018  3 หลายเดือนก่อน

      Yes, you can link the federated user i.e. google user with the local user which was created before the user logged in for the first time. This can be done when the user logs in for the first time through Google. Take a look at the this documentation docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html
      Please like, subscribe & share!! Thanks in advance.

    • @vivekgowda1576
      @vivekgowda1576 3 หลายเดือนก่อน

      @@securityinaction1018 thank you. Do you have any video tutorials regarding this to understand in easy way?

    • @securityinaction1018
      @securityinaction1018  3 หลายเดือนก่อน

      I don't have it at this point of time. But, I will try to post it in future.

  • @Geeksrik
    @Geeksrik 3 หลายเดือนก่อน

    could you please ensure to keep your mic closeby as we lost audio in some parts. otherwise great tutorial.

    • @securityinaction1018
      @securityinaction1018  3 หลายเดือนก่อน

      Thanks for the feedback. I am constantly trying to improve the quality of the videos and will try my best.

  • @BTCSESushantKogurwar
    @BTCSESushantKogurwar ปีที่แล้ว

    hello im getting this error after opening the hostedui You can’t sign in because this app sent an invalid request. You can try again later or contact the developer about this issue. Learn more about this error
    If you are a developer of this app, see error details.
    Error 400: redirect_uri_mismatch

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว +1

      If the error is thrown in hosted UI, it means the redirect_uri parameter value sent to Cognito is not matching with the redirect_uri configured for that client_id.

    • @ranasagar699
      @ranasagar699 9 หลายเดือนก่อน

      How to resolve this error?

  • @juanbrundisarmentomadeira1785
    @juanbrundisarmentomadeira1785 ปีที่แล้ว

    hi, how to do this social login using golang ?

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว

      Are you referring to a client app using golang?

    • @juanbrundisarmentomadeira1785
      @juanbrundisarmentomadeira1785 ปีที่แล้ว

      No. I mean how to store the data using golang.
      Example:
      I have react app that using google signin
      I login and send the data to my backend(go)
      Then how i store that data on user pool as external probider?

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว

      You need to integrate your app with Cognito instead of Google. Cognito will handle the Google signin flow and store the user profile when a user logs in for the first time.

    • @juanbrundisarmentomadeira1785
      @juanbrundisarmentomadeira1785 ปีที่แล้ว

      By that you mean integrate with my react app directly right?

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว

      Yes. Add Google as an Identity provider in Cognito as described in this video and integrate the react app with Cognito using OIDC

  • @webmax84
    @webmax84 4 หลายเดือนก่อน

    terrible sound, the mouse clicks very loudly, periodically the volume decreases, as if the microphone is covered with something

    • @securityinaction1018
      @securityinaction1018  4 หลายเดือนก่อน

      Thanks for the feedback. I agree on the mouse click and audio issues. I made some changes in the latest videos that I posted and I will try my best to improve the quality.

  • @jumboliah13
    @jumboliah13 7 หลายเดือนก่อน

    Sorry, couldn't continue listening with your sound going out from time to time. Good content though.

  • @md.sadiqibnmasud4985
    @md.sadiqibnmasud4985 11 หลายเดือนก่อน

    Very poor sound quality!

  • @rajatagarwal9343
    @rajatagarwal9343 ปีที่แล้ว

    @securityinaction1018 could you please help me with android app integration solution

    • @securityinaction1018
      @securityinaction1018  ปีที่แล้ว

      I have not tried mobile app integration? But, it should be almost same as a web app integration. I think only the redirect_uri needs to be configured differently for a mobile app. This documentation might be helpful : docs.amplify.aws/lib/auth/getting-started/q/platform/android/#option-2-manually-call-the-authentication-apis