-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signInWithSocialWebUI Google not working #2831
Comments
Can you click on the "Google" identity provider and take a look at the attribute mapping? Did you add configure Google sign in's via the Amplify CLI or are you trying to configure this manually? I think there is a missing email attribute mapping to look into, but if the CLI was used, I would have expected this to already be configured. |
No, I don't receive verification email. And I also tried to resend verification code but it didn't receive any email.
I developed my app based on cognito, s3 and dynamodb. Everything is working well. it is really pity not to have signInwithSocialUI. I tested many ways and remove and create everything several times. However, it is not still solved. Thank you. |
I'll let you know what I see on my end when I set up a test app. |
Thank you. |
I've verified that on a new Amplify app with google hosted ui sign in, I am also not seeing the email as confirmed. However, the user is "enabled" and the confirmation status is "external provider". The user should be able to complete user pool actions with this status. Can you explain your use case on how email verification impacts these users? I'm still trying to verify what the expected behavior is. |
Yes, I am able to log in successfully. I'll take a look at the logs you are seeing when they come in. Thank you. |
Sorry for delay in response:
I receive the following error:
|
I use Amplify.Auth.getCurrentUser to check if the account is already sign in and it works fine for Amplify.Auth.signIn. However, when I signed in with google provider by calling Amplify.Auth.signInWithSocialWebUI , I receive nothing (neither onComplete() nor onError() ) it is also the same for Amplify.Auth.getCurrentUser or Amplify.Auth.fetchAuthSession !
Do you know if it is the correct way to check isSignedIn? |
The "Auth" element in backend-config.json
|
I missed an important detail in the original build.gradle you posted. I see this dependency This comes from our AWS Android SDK. If this happens to be using AWSMobileCient, which is also part of the AWS Android SDK, it will wipe the credentials from Amplify v2. You should try and remove all references to From the last Another thing that can help with debugging... Add |
Hi, Sorry for delay in response. I deleted all of Then I add
The dependencies:
before running
When I call It is worth noting I am using I only wanted to let you know. Don't waste your time. If there is no issue on your side, it means that I am making mistake somewhere in this process. Thanks. |
You cannot use |
Sorry I forgot to say that. I have tested with and without |
Please post the logs that are shown when calling |
Hi Tyler! Please give me a time because I should develop other parts as soon as possible it may take several days. Then I will send you the logs. Many Thanks for your support. |
Before opening, please confirm:
Language and Async Model
Kotlin
Amplify Categories
Authentication
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
Hi,
Hope you are all fine!
I want to add social provider sign-in for google accounts. I followed all of the instructions in https://docs.amplify.aws/gen1/android/build-a-backend/auth/add-social-provider/
Then I added google identity provider in user pool ->sign-in experience and enter client_id and client_secret:
The host UI configuration is as follows:
When I run the
Amplify.Auth.signInWithSocialWebUI
in the first time the application minimize but when I reopen the app a diolog pops up and I choose my account and in user pool my account appears:However, the email is not verified.
It is worth noting that I don't have any problem with signInWithEmailAndPassword, and it works fine.
Could you please explain if anything else is required to do?
Thanks.
Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: