com.apple.AuthenticationServices.Authorization Error Code 1000

31,048

Solution 1

Two days elapsed.

Answer is here: https://xamarin.github.io/bugzilla-archives/25/25141/bug.html

I opened csproj and discovered some build configuration were missing CodesignEntitlements and some of them were empty:

<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>

After adding it to/updating it in all build configurations it finally works.

PS: Before that I tried to create empty xamarin project (with the same bundle name) and it reproduced the problem on simulator. Then I did swift project (with the same bundle name) and it worked fine. So it was clear that it was xamarin specific bug.

Solution 2

After searching I found that it works on a real device and SOMETIMES doesn’t work on the simulator.

But I solved it by logging in here and removing the simulator under Devices. Then building it again. Don't forget to add “Sign in with Apple” in “Signing & Capabilities”.

Solution 3

I got this error because forget to add sign in capability.

capability

Solution 4

Fist of all, all above answer are correct to me.

Second, I spend some hours to found out that I miss add Sign with Apple ID Entitlements in release config, So I just past what I do here.

You can check by any one of bellow:

1. Check every tab under Signing & capabilities in Xcode

enter image description here

2. Search com.apple.developer.applesignin in vscode(or other file tool), you should find 3 Entitlements files

enter image description here

3. Check files in project folder in vscode(or other file tool), you should find 3 Entitlements files with com.apple.developer.applesignin included.

enter image description here

Solution 5

A verification step from Apple is not required, despite the misleading documentation on their side.

Could you try to run a new build and make sure to create a new provisioning profile with updated capabilities inside?

Make sure the "Apple Sign-in" entitlement is added to your build settings, and in your Apple certs from the developer portal.

If you're running a development build, try switching to a production build. You might need to go as far as signing the app bundle for Ad Hoc distribution and installing it that way.

As you can check in the Apple Documentation, the 1000 error code really means that the error is unknown, so this solution may not work for you. In terms of your code, it seems alright to me! You can also check these samples!

Share:
31,048
Access Denied
Author by

Access Denied

Professional Mobile developer I have a large productivity my own app at Google Play, AppStore, Windows Store and work for it since 2013. I use xamarin native, but seems like I will have to move to Xamarin Maui, since xamarin.iOS development became problematic since xcode ditched xib and storyboard and xamarin ditched their visual studio xib designer. Professional enterprise UI components developer. From 2019-2021 worked on the advanced richtext component for making templates and filling them (a part of product for lawyers). From 2010-2013 Did .net reporting designer, silverlight viewer for reporting services, javascript web widgets component with UI designer. Interests apart from my work (Deep learning, business books, Algorithms, investments).

Updated on November 11, 2021

Comments

  • Access Denied
    Access Denied over 2 years

    I receive the following error in DidCompleteWitherror:

    com.apple.AuthenticationServices.Authorization Error Code 1000
    

    I'm using the following code to sign in to Apple

    var appleIdProvider = new ASAuthorizationAppleIdProvider();
    var request = appleIdProvider.CreateRequest();
    request.RequestedScopes = new ASAuthorizationScope[] { ASAuthorizationScope.Email, ASAuthorizationScope.FullName };
    var authController = new ASAuthorizationController(new[] { request });
    authController.Delegate = this;
    authController.PresentationContextProvider = this;
    authController.PerformRequests();
    ...
    [Export("authorizationController:didCompleteWithAuthorization:")]
    public void DidComplete(ASAuthorizationController controller, ASAuthorization authorization)
    {
    ...
    }
    
    [Export("authorizationController:didCompleteWithError:")]
    public void DidComplete(ASAuthorizationController controller, NSError error)
    {
    ...
    }
    
    • I checked Apple Sign-in in the Entitlements.plist
    • I created app id in the management console, verified my domain. Even web auth works already.
    • I tried to switch provisioning profile to one with apple sign in.

    What could be the reason of this error?