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

How to determine if user ID credentials have "Transferred" state after app transfer? #210

Open
virusys opened this issue Aug 21, 2024 · 0 comments

Comments

@virusys
Copy link

virusys commented Aug 21, 2024

Hi there,

We are currently testing proper transfer and migration of Apple IDs using Apple Sign-In with a Unity project that we are transferring to another developer. We have a mock environment setup to test app transfer and document each step of the process, following the guidelines described by this article

We are trying to confirm step 6 of this article:

6. Team B confirms successful user migration

"Within your app or web service, you can confirm the user migration was successful by checking the credential state of the user. Its value should be .transferred. To learn more about this step, see Confirm the transferred credential state."

Using the code provided in your README to check Credential Status, we have added another case for the CredentialState.Transferred status:

this.AppleAuth.GetCredentialState(
userId,
state =>
{
    switch (state)
    {
        case CredentialState.Transferred:
        credentialState = "Transferred";
            break;
        break;
        case CredentialState.Authorized:
            // User ID is still valid. Login the user.
            credentialState = "Authorized";
            break;
        
        case CredentialState.Revoked:
            // User ID was revoked. Go to login screen.
            credentialState = "Revoked";                                            
            break;
        
        case CredentialState.NotFound:
            // User ID was not found. Go to login screen.
            credentialState = "NotFound";
            break;
    }

However despite having generated transfer IDs for all of our users, initiated the app transfer, and migrated users via exchanging transfer Ids with the recipient team; upon sign-in the users all receive a CredentialState of Authorized instead of the expected Transferred.

Could there be a step we are missing to properly implement the ASAuthorizationControllerDelegate, using your Apple Sign-In framework?

More info on what we are trying to accomplish can be found here

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

1 participant