I'm developing a native library for iOS which is ment to be used for Single Sign On. I need to share credentials with a backend service, for which I followed this steps: (According to FIDO2 standard and this example)
1. I enabled Associated Domains in my application
2. Backend service hosted the /.well-known/apple-app-site-assiciation.json
{
"webcredentials": {
"apps": [
"<TEAM-ID>.<com.example.bundle-id>"
]
}
}
The error I'm getting:
Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1004 "Application with identifier P896AB2AMC.com.trust.testsso is not associated with domain cerberus.trust.lat" UserInfo={NSLocalizedFailureReason=Application with identifier P896AB2AMC.com.trust.testsso is not associated with domain cerberus.trust.lat}
error in connection_block_invoke_2: Connection interrupted
I don't know exactly what I'm missing.