-
Notifications
You must be signed in to change notification settings - Fork 31
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
Creating Amplify auth social sign-in throws error on hosted UI providers #792
Comments
It looks like Amplify CLI might have logic to extract the correct value: |
This seems to another possible code snippet that extracts the private key for the auth category. Not clear if it is working or if it is actually used in headless mode |
Hey @petercwk, it failed in headless when i tested this: aws-amplify/amplify-cli#11526 (comment) |
From the json payload, "requiredSignupAttributes": []. Could you try adding "PHONE_NUMBER" |
using that also fails. On deeper dive found that using Phone number may not be supported by apple sign in. Headless fails for the same reason but when changing to email this works. Need to check if Cognito actually supports Apple sign-in with phone number. |
Note: the improvement here is to add validation on the box to see if this is a valid key. The fix will need to be on the CLI. |
Before opening, please confirm:
App Id
d1qbjxyhsg82r
Region
us-east-1
Environment name
staging
Figma File Version (if applicable)
No response
Amplify CLI Version
10.5.2
If applicable, what version of Node.js are you using?
No response
What operating system are you using?
Mac
Browser type?
chrome
Describe the bug
Adding authentication with social sign-in as Apple causes the push to fail.
Passing in private key with
-----BEGIN PRIVATE KEY-----
,-----END PRIVATE KEY-----
causes the hosted provider function to fail. The Amplify CLI only accepts the key without the comments.The cloudwatch logs for callout function throws the following error
refer to aws-amplify/amplify-cli#11526 (comment) and aws-amplify/amplify-cli#11526 (comment) for additional information.
Expected behavior
Validate key the key or parse the key with correct information.
Reproduction steps
Project Identifier
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: