How To Add Google Social Sign On To Amazon Cognito | Step by Step Tutorial

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

КОМЕНТАРІ • 55

  • @BeABetterDev
    @BeABetterDev  3 роки тому +5

    Learn how to use a Cognito User pool to authenticate users via API Gateway! ua-cam.com/video/oFSU6rhFETk/v-deo.html

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

      Hi, how to redirect after social login successfully logged in and callback to Application activity?
      I am struggling to get callback.

  • @zhanarazhorobaeva751
    @zhanarazhorobaeva751 2 роки тому +5

    Oh my, this is by far the best video on how to integrate Cognito! I've done some long journey to your video and liked the way you explained it, sure I am subscribed after this nice job...

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

    It's a beautiful video, Its definitely underrated

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

    its a great video. thank you so much for sharing all these info !

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

    Well explained, thanks

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

    Thank you for that video, that was exactly what i was looking for!

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

    Amazing Video !
    But, I want to know how to do the Sign Up, Login & other MFA if I already have a existing backend in AWS Cognito .
    And have the below details of the existing backend :-
    aws_cognito_identity_pool_id:
    aws_cognito_region:
    aws_user_pools_id:
    aws_user_pools_web_client_id:
    I hope this question will generate curiosity in you.
    Please make a separate vdo on this topic

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

    awesome topic !!!!! thank you

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

    Can you please make a video on preventing multiple logins per user with Cognito? it's a lacking feature currently and people are struggling.

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

      Hi Damian,
      This is certainly something I can look into making a video on. Thanks for raising this topic!

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

    Dziękujemy.

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

      Thank you so much for your generosity!

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

    Thank you so much.

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

    Dammit, man, thank you!!!

  • @maddyexplore-os3vz
    @maddyexplore-os3vz 3 місяці тому

    helpful

  • @KarimFayed-oy5oo
    @KarimFayed-oy5oo Місяць тому

    Which application type should I choose If I'm creating a cross platform app in using react native ?

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

    Please create video on AWS Kendra..

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

    why implicit grant rather than Authorization code grant? Aws doesn't recommend using Implicit Grant. Would love to see someone using Authorization code grant

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

    How to do this for an Android app instead of a Web app?

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

    I don't want to use hosted UI, please make a video on using your own UI with callbacks, as it's really confusing

  • @Snoretech-cn6yj
    @Snoretech-cn6yj 2 місяці тому

    whys there no sign-up using google option?

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

    Hello , how would be the way to go without relying at all in the hosted UI?

  • @MarcoFalconi-v7q
    @MarcoFalconi-v7q 13 днів тому

    In classic AWS fashion, it's been more than fifteen minutes, so NOTHING in the Console looks or is named the same

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

    Thanks for the tutorial. How would you recommend setting up the callback url so that it is localhost during local development and your hosted site in production environments?

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

      use ngrok or something while using localhost

  • @GursewakSingh-uo3cp
    @GursewakSingh-uo3cp 10 місяців тому

    hii, i am new with cognito, So i want to when you successful do login using above, is our data like email, name etc also gets stored in DynamoDB or not.
    beacuse i have successfull done above stuff and also i am able to see user in user-pool, but that same data is not visable in DynamoDB.
    thankuuu so much

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

    How can we get refresh token?

  • @sakthivel-kl1ws
    @sakthivel-kl1ws 2 роки тому

    Hi , is this configuration can I use custom application? Like php Laravel application

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

    Great Video! I have the exact same setup for an application and I also want to use other services from the Google API such as profile or calendar of a user. Does the cognito session also include an access token to google API stuff? Problem is that I don't want to ask the user twice to log in to his google account to get access to the required resources. Or is asking the user again for the required scopes the only way to retrieve the access token for the google APIs?

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

    Beast

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

    I've been looking for this tutorial for a long time as in my company is currenty migrating its user base to a serverless solution using Cognito with Social Sign In + Trigger Lambdas. We ran into the question of what happens if a user signs up using an external IdP and later they sign up organically with username/password credentials. From what we've seen is that Cognito creates two user accounts with the same email that are not related to one another, which that's pretty confusing and could lead to potential errors for user data synchronization between accounts, specially when updating user attributes and with ID Token generations as they may not have the same claims.
    Is there a way to link external users with native users or how should we handle this edge case?
    Thank you!

    • @BeABetterDev
      @BeABetterDev  3 роки тому +4

      Hey Gabriel,
      Great question. This is a very similar topic to what I am currently researching for a project I'm working on.
      So far, I've discovered a neat functionality called 'AdminLinkProviderForUser'. This API allows you to 'link' users together when they sign in using a SSO provider. I believe you would have to use some kind of Lambda hook that calls the API, perhaps at the 'Pre-Sign Up' and 'Pre-Authentication' points.
      I haven't tried any of this myself, but looks to be the right way to go. I'll be trying it out in the coming weeks though. If you come up with another approach please email me - I'd love to know how you did it.
      Link for AdminLinkProviderForUser - docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminLinkProviderForUser.html
      Hope this helps and thanks for the question,
      Daniel

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

    Why wouldn't you use the Identity Pool instead of the User Pool, for so-called 'Identity', right (?). What's the difference?
    So if I understand correctly, when you configure to 'federate' that is passing the providers (cognito user, google, etc) through the cognito identity pool anyway.
    Just different facades, configuration, etc, for that process.

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

      Hi Michael,
      Identity Pools are a bit of a confusing concept in Cognito. The name is a misnomer - in fact, I recall being in an AWS talk where a engineer from the cognito team "wished they could have picked a different name for identity pool". That being said, Identity pools actually allow users to be granted IAM credentials for access to AWS services in your account after the authentication step (i.e. using your user pool). Hope this clears up the confusion.

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

    Really awesome video tutorial. I'm still a bit confused with AWS Cognito pricing. It states the first 50,000 MAU (Monthly Access Users) is free, but it's unclear as to whether OAuth2 i.e. Google is also part of that free tier or whether there are additional charges. Would you know? Thank you.

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

      Hi Ken, I believe social sign on providers are included in the 50,000. Hope this helps.

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

      @@BeABetterDev Thank you

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

      SAML is not included in the free limit

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

    Hey, The email of your user is marked as not verified. How do you managed to verify it? The hosted ui didn't prompt you to insert any code, nor cognito sent you an email with a code, like it normally does. I'm stuck!

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

      Hi Giulio - Cognito should send you a confirmation email. Maybe try to check your spam folder?

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

      you have to map email_verified as is name & given_name

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

    I found the article really handy, thank you.
    But I do have a HUGE issue, and you might have it too. First signup with google, creates the user in the pool and works fine. But if, on a different browser you try with the same google user to login, you get an ERROR: [redirect-url]?error_description=Invalid+user+attributes%3A+email%3A+Attribute+cannot+be+updated.%0A+&error=invalid_request
    It seems to be caused by the fact that email is required.