com.apple.AuthenticationServices.Authorization Error Code 1000

Access Denied picture Access Denied · Dec 13, 2019 · Viewed 11.5k times · Source

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?

Answer

Noe picture Noe · Aug 12, 2020

After searching I found out that it works on a real device and SOMETIMES not working on the simulator.

But I solve it by logging in here and removing the Simulator under Devices

And building it again. Don't forget to add the Sign in with Apple in Signing & Capabilities.

Vote up to thank me :)