Passkey Associated domain error 1004

iOS18.1.1 macOS15.1.1 xcode16.1 Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1004 "Unable to verify webcredentials association of ********** with domain ******************. Please try again in a few seconds."

Our domain must query with VPN, so I set webcredentials:qa.ejeokvv.com?mode=developer following: "If you use a private web server, which is unreachable from the public internet, while developing your app, enable the alternate mode feature to bypass the CDN and connect directly to your server. To do this, add a query string to your associated domains entitlement, as shown in the following example: <service>:<fully qualified domain>?mode=<alternate mode> "

but it still not working, even after I set mode=developer.

Please help!!!!

Answered by Systems Engineer in 834994022

Unfortunately these kinds of issues are very difficult to investigate without logging. If you file this through Feedback Assistant and attach logs, we'd be happy to take a look :)

After I make the domain public(not must using VPN), Still got Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1004

Did you figure this out? I have the same issue. I have multiple envs, the pre-prod ones are obviously behind a firewall so I have:

associatedDomains: [ 'webcredentials:.blabla.net?mode=developer', 'webcredentials:.blabla-test.com', 'webcredentials:*.blabla.com', ]

It tells me:

[Error: The operation couldn’t be completed. Unable to verify webcredentials association of <TEAM_ID>.<BUNDLE_ID> with domain <BUNDLE_ID>. Please try again in a few seconds.]

Very unclear to me the association between bundle ID and actual domain names. The bundle ID does not match the domain names obviously. Find their documentation a bit unclear, which they had given real samples instead of XXXXX and YYYYY placeholders.

Unfortunately these kinds of issues are very difficult to investigate without logging. If you file this through Feedback Assistant and attach logs, we'd be happy to take a look :)

If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why?

Albert Pascual
  Worldwide Developer Relations.

Passkey Associated domain error 1004
 
 
Q