Skip to content
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

Sign up with apple without Web view does not work #3780

Closed
yegenpres opened this issue Jul 16, 2024 · 2 comments
Closed

Sign up with apple without Web view does not work #3780

yegenpres opened this issue Jul 16, 2024 · 2 comments

Comments

@yegenpres
Copy link

Describe the bug

Sign up with app work correct throw web page, but when I try use SwiftUI SignUp apple button and get JVW token, then pass in directly to Amplify Auth API I get error: Failed execution for Auth.federatedToIdentityPool with error: AuthError: Not authorized error Recovery suggestion: Check whether the given values are correct and the user is authorized to perform the operation amplify

Steps To Reproduce

Steps to reproduce the behavior:
1. Configure Apple sigh in like external provider
2. Check does it works throw sign up by web.
3. Define apple Sign in button in SwiftUI app.
4. Get user identity
5. Pass it to

Expected behavior

Need log in user, like with web.

Amplify Framework Version

6.3.7

Amplify Categories

Auth

Dependency manager

Swift PM

Swift version

5.9

CLI version

12.12.4

Xcode version

15.4

Relevant log output

<details>
<summary>Log Messages</summary>


 Failed execution for Auth.federatedToIdentityPool with error: AuthError: Not authorized error Recovery suggestion: Check whether the given values are correct and the user is authorized to perform the operation amplify
```

Is this a regression?

Yes

Regression additional context

Amplify gen 2

Platforms

iOS

OS Version

IOS 17+

Device

Any IOS device or simulator

Specific to simulators

Any

Additional context

Знімок екрана 2024-07-16 о 23 03 34 Знімок екрана 2024-07-16 о 23 03 41
@harsh62
Copy link
Member

harsh62 commented Jul 16, 2024

The API's that you used is federating into Identity pools.. Federating to user pools is only supported through the WebUI. Marking the issue as duplicate.
Please track: #1121

@harsh62 harsh62 closed this as completed Jul 16, 2024
Copy link
Contributor

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants