-
Notifications
You must be signed in to change notification settings - Fork 886
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
Can not get user after sign in with Apple ID #5438
Comments
@BigVeila Thanks for submitting the issue. We'll work on reproducing the issue and provide an update here. |
@BigVeila Federating into user pools is not a supported feature. What you are doing is federating into Identity Pools. You can use WebUI API in Amplify to federate into user pools using SIWA. |
@harsh62 thanks, I am using Amplify and I sign-in success, my user is added into user pool too. |
@BigVeila Can you provide your configuration file (with sensitive details redacted) and sample code on how you configuring Amplify and signing in/out? |
@phantumcode I have signed out successfully.
to info.plist so you don't have to reset the configuration before signing out. Step 2 is to add options: .preferPrivateSession() to sign-in function, so that when signing out, the alert message won't appear. I found that there is no specific sample or tutorial, I found them by testing and researching in existing issues. AWS should add to the documentation |
@phantumcode I have one more question. |
This is because you are already into the identity provider. The sign out only signs you out from Cognito and not the identity provider. |
@harsh62 So is there any way for me to completely sign out? Or is the only option to use preferPrivateSession()? |
@BigVeila .. I would like to refer you to this comment I made on another issue which is similar to what you are seeing. I would suggest you to use private session if you want the user to be not automatically logged in if they haven't logged out of the idp. |
I use AWS Cognito to sign in with Apple ID. The setup helped me successfully sign in using the function:
AWSMobileClient.default().federatedSignIn(providerName: IdentityProvider.apple.rawValue, token: identityTokenString)
As you can see from the log in the console.
However, I’m still encountering three issues, and I think the first two might be related:
AWSMobileClient.default().getUserAttributes().
I get error 26 (notSignIn??)I’m not sure if there is any configuration missing on the AWS Console side, but I’m confident I followed the instructions completely since the sign-in itself was successful.
Environment:
Device Information (please complete the following information):
Thanks you!
The text was updated successfully, but these errors were encountered: