Skip to content

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

@yegenpres

Description

@yegenpres

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions