cordova-plugin-sign-in-with-apple icon indicating copy to clipboard operation
cordova-plugin-sign-in-with-apple copied to clipboard

Authorization failed - Error 1000

Open dev3inv opened this issue 4 years ago • 8 comments

When I try to use the login I get an error 1000. I have configured the sign in with apple capability, do you have any idea that another action could generate this problem?

dev3inv avatar Aug 15 '20 19:08 dev3inv

I had this working last week, and now I am getting error 1000 again. How dumb (on Apples part) to even have an error 1000 with no explanation that lots of people run into.

SailingSteve avatar Aug 20 '20 23:08 SailingSteve

Exactly, the same thing happened to me. 2 weeks ago it was working fine, but last week it failed and I still haven't found a solution :/

dev3inv avatar Aug 21 '20 13:08 dev3inv

same here, it was working last month and now i have error 1000.

tapionx avatar Aug 24 '20 09:08 tapionx

I test using an ngrok tunnel to the backend (in our case Django Python) running on my Mac. And in this case last week I started getting error 1000.

Today, on an actual iPhone Xs Max, I get the following response (tokens and user codes shortened ...)

{"email":"","authorizationCode":"ca05db...d7f.0.mruxr.ldAyZWU4oap...RQ","state":"","identityToken":"eyJraWQiOiI...O_CYxnlLBgkQLRjZCnjc1MS6N0g","fullName":{"nickname":"","phoneticRepresentation":{},"middleName":"","familyName":"","namePrefix":"","givenName":"","nameSuffix":""},"user":"001471.b4fbedffd8c14238afed43089ab73549.2015"}

It is strange that the email is "", as well as the name fields at the end are all blank. I would expect the name fields to be not there on the second sign in on the device, and populated with data on the first. Something must have changed.

So I am now able to get the cordova-plugin-sign-in-with-apple working on a real phone tethered to XCode via a USB cable, but still get error 1000 with Simulator instances.

The response that I am getting on my tethered phone today, has a good JWT in the identityToken field, and when I send it to my server and decrypt it there, I get good data: name and email on the first signin with siwa on the phone, and just the email on subsequent signins.

SailingSteve avatar Aug 24 '20 16:08 SailingSteve

I was having the same problem. I was testing it on an emulator and I was getting the 1000 error. But when I uploaded to Testflight it worked. Is this something that Apple is not allowing to be tested on an emulator anymore?

marioshtika avatar Aug 28 '20 12:08 marioshtika

I think this has to do with the number of times you tested on that device or account. I launched an emulator for a different device and it worked. I am assuming that if I reset the other device it will work or perhaps waiting a certain amount of time will allow access again.

codeconsole avatar Sep 27 '20 00:09 codeconsole

If I delete the simulator here: https://appleid.apple.com/account/manage then erase all content and settings on simulator then deploy the app again, it works.

codeconsole avatar Sep 27 '20 05:09 codeconsole

apple login is working on emulator but when I am creating build and installing on real device its not working . Can somebody help me ?

When I try to debug the issue . I got this issue code: "1000" error: "ASAUTHORIZATION_ERROR" localizedDescription: "The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)"

webkhushboo avatar Oct 30 '21 18:10 webkhushboo