# iOS Application not recognizing Auth0 Associated Domain

**URL:** <https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [May 23, 2024, 2:44pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847 "2024-05-23T14:44:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tylermills](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tylermills/32/53144_2.png) [@tylermills](https://community.auth0.com/u/tylermills)\
**Post date:** [May 23, 2024, 2:44pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/1 "2024-05-23T14:44:35Z")

</div>

I am converting an iOS app from using native login to using the universal login flow, following the steps provided here: [Auth0 iOS / macOS SDK Quickstarts: Add Login to your iOS or macOS app](https://auth0.com/docs/quickstart/native/ios-swift/interactive)

I have setup the callback URLs and verified that the webcredentials entry matches, as well as set up my provisioning profile with associated domains. Every step in the walkthrough matches what is asked for, but I continue to get the following error:

```auto
Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=1 "Application with identifier {MY_IDENTIFIER} is not associated with domain {MY_AUTH0_DOMAIN}. Using HTTPS callbacks requires Associated Domains using the `webcredentials` service type for {MY_AUTH0_DOMAIN}"

```

I have cleared derived data and tested on simulators and my personal device with the same result. At a bit of a loss on what to do next.

---

<div class="post-metadata">

**Author:** ![suraj.pathak](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/suraj.pathak/32/49036_2.png) [@suraj.pathak](https://community.auth0.com/u/suraj.pathak)\
**Post date:** [June 11, 2024, 6:51am UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/2 "2024-06-11T06:51:56Z")

</div>

Having the same issue, for iOS 17.4 onwards.

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [June 11, 2024, 8:40am UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/3 "2024-06-11T08:40:07Z")

</div>

👋 @tylermills 🕶

Would I be right in thinking you also posted about this on our GitHub repo for Flutter (see [here](https://github.com/auth0/auth0-flutter/issues/430#issuecomment-2129796063))? Did you end up solving the problem? I’ve not specifically researched this issue, but Widcket’s comment - which is essentially related to information caching - would seem to make sense.

As mentioned, you can check the information Apple holds by visiting `https://app-site-association.cdn-apple.com/a/v1/YOUR_AUTH0_DOMAIN_OR_CUSTOM_DOMAIN`. Typically, this should match the information provided by `https://YOUR_AUTH0_DOMAIN_OR_CUSTOM_DOMAIN/.well-known/apple-app-site-association` - i.e. the AASA file data hosted by Auth0. At least for the `appID` in question.

If there’s a mismatch, then it’s likely going to be in the domain name portion, and would typically be a result of switching from using the out-of-box Auth0 Domain Name to using a _Custom Domain Name_ (or vice-versa). In essence, one domain is being used with Auth0, whilst the other has been cached by Apple.

According to the [Apple Documentation](https://developer.apple.com/documentation/xcode/supporting-associated-domains#Add-the-associated-domains-entitlement-to-your-app), it looks like it’s possible to add associated domain entitlements; it also mentions that the Apple CDN will update periodically, so the problem would likely fix itself…eventually! 😄

Another possible solution could be to delete the App definition and create a new one (with a new _App ID_). However, this would likely have a knock-on effect on your application - including the need to change the _Application_ (_Client_) definition in Auth0.

I’d be very interested to know how you ended up solving the issue, so please feel free to post an update here when you have the chance and let us know how you got on. Cheers 🕶

---

<div class="post-metadata">

**Author:** ![rick.pasetto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rick.pasetto/32/60320_2.png) [@rick.pasetto](https://community.auth0.com/u/rick.pasetto)\
**Post date:** [August 24, 2024, 12:08am UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/4 "2024-08-24T00:08:26Z")

</div>

We too are having this problem on a regular basis. Sometimes it clears up, sometimes it doesn’t. Sometimes it happens in the iOS Simulator, sometimes it only happens on iOS devices. I’ve checked Apple’s CDN and everything looks fine there. Unfortunately creating a new App ID is not really an option. As it happens we are not (yet) using custom domains, and we don’t use Flutter. Any other ideas @peter.fernandez ?

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [August 27, 2024, 1:41pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/5 "2024-08-27T13:41:56Z")

</div>

Hi @rick.pasetto, and welcome to the Auth0 Community! 🕶

As I mentioned in my previous comment, I’ve not researched this issue specifically, however, here are a couple of things that spring to mind that would be worth checking (numbered for convenience of reference rather than any particular order):

1. Have you checked to see that your application makes consistent reference to your Auth0 tenant Domain? For example, if you have a _[Custom Domain](https://auth0.com/docs/customize/custom-domains)_ defined, then I would expect your iOS app to reference that _Custom Domain_ consistently rather than switching between the _Custom Domain_ and the default tenant domain at any point.

2. What happens if you retry the operation that gets the error? Though I would’ve expected Apple to gracefully handle cache refresh syncs, you may be encountering some artefact that results in the information required being unavailable whilst a cache refresh occurs.

Feel free to post any response here in the thread, thus keeping me and the rest of the Community apprised of your findings 😁

---

<div class="post-metadata">

**Author:** ![rick.pasetto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rick.pasetto/32/60320_2.png) [@rick.pasetto](https://community.auth0.com/u/rick.pasetto)\
**Post date:** [August 30, 2024, 10:41pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/6 "2024-08-30T22:41:52Z")

</div>

@peter.fernandez thank you for the thoughtful reply! To answer your questions:

1. No, we are not using a Custom Domain, so that is not likely the culprit.
2. Retrying the operation sometimes works, sometimes doesn’t. By the way, the operation I’m referring to is simply just logging in (or rather, starting the login process) via Auth0’s Universal Login.

Some other interesting data:

- This happens regardless of whether the app is run in Xcode or built, signed and delivered to users
- This happens on both debug and release builds
- I saw in other places that adding a `?mode=developer` to the `webcredentials:` associated domain URN is supposed to circumvent Apple’s CDN, but that didn’t work (Caveat to other readers: this might have been incorrect information in the first place, I don’t know)

The error we get is exactly the same as the one at the start of this thread.

What could be the cause?

---

<div class="post-metadata">

**Author:** ![alvinh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alvinh/32/59565_2.png) [@alvinh](https://community.auth0.com/u/alvinh)\
**Post date:** [August 31, 2024, 11:19pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/7 "2024-08-31T23:19:09Z")

</div>

We may have the same case like @suraj.pathak , only happens on simulator for iOS 17.4 onwards. checked on simulator iOS 17.2 , everything looks fine.  
By the way, we switched to another account’s application recently. As we have not enrolled any Apple Developer Program, there is not any “Team ID” available at the moment and our “.well-known/apple-app-site-association” looks like below:  
{“applinks”:{“apps”:,“details”:[{“appID”:“undefined.com.abc.def”,“paths”:[“/ios/com.abc.def/\*”]}]},“webcredentials”:{“apps”:[“undefined.com.abc.def”]}}  
Not too suer this will cause the issue or not 🤔

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [September 11, 2024, 7:39am UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/8 "2024-09-11T07:39:31Z")

</div>

👋 @alvinh and welcome to the Community 🕶

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [September 11, 2024, 7:41am UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/9 "2024-09-11T07:41:49Z")

</div>

Folks, I just wanted to post and give an update to everyone currently on this thread…or who comes across this thread 😁 Our iOS SDK team is currently looking into this situation in more detail, and I will post back here when I know more. Thank you everyone for your patience whilst we try to get more clarity 🤗 In the meantime, I have a couple of follow-up questions which I believe will provide our (SDK) team with additional insight/information…

There are aspects to this issue which feel like a classic case of contended access - i.e. where cache update at the Apple CDN is periodically failing for some reason, but then subsequently succeeding on some later retry/update. As I’m sure folks are aware, there are a number of [subscription options](https://auth0.com/pricing) associated with Auth0, each one carrying associated policies for resource [Rate Limiting](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy). In addition, an Auth0 Tenant can be configured with an _[Environment Tag](https://auth0.com/docs/get-started/auth0-overview/create-tenants/set-up-multiple-environments)_ which further impacts rate limit policies. So, in the context of the issue, can I please ask folks to provide an indication of each of the following (numbered for convenience of reference rather than any particular order, and feel free to DM me if you’d prefer 🕶):

1. The [Auth0 subscription](https://auth0.com/pricing) tier of the Auth0 Tenant
2. The _[Environment Tag](https://auth0.com/docs/get-started/auth0-overview/create-tenants/set-up-multiple-environments)_ setting at the Auth0 Tenant.
3. The _[Auth0 Connections](https://auth0.com/docs/authenticate/identity-providers)_ that are enabled against the _[Auth0 Application](https://auth0.com/docs/get-started/applications)_

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [September 11, 2024, 7:45am UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/10 "2024-09-11T07:45:23Z")

</div>

Also, if anyone experiencing this issue has an [Auth0 subscription](https://auth0.com/pricing) that includes a paid support contract, I would urge you to open a support case as well as this could help expedite matters 🕶 Thank you.

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [September 13, 2024, 7:39am UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/11 "2024-09-13T07:39:38Z")

</div>

👋 For folks experiencing this problem, it would be very helpful if you could also share some more information regarding the [region](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/public-cloud-service-endpoints) in which your Auth0 Tenant is deployed (again, feel free to DM me if you’d prefer 🕶). I’m not looking for specific tenant names, but rather an idea of where in the world tenants are generally being provisioned, i.e.

![image](https://global.discourse-cdn.com/auth0/original/3X/9/d/9da70d4c40c3d2d3cb1250f2b6589bc3b197382a.png)

---

<div class="post-metadata">

**Author:** ![rick.pasetto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rick.pasetto/32/60320_2.png) [@rick.pasetto](https://community.auth0.com/u/rick.pasetto)\
**Post date:** [September 16, 2024, 4:19pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/12 "2024-09-16T16:19:46Z")

</div>

@peter.fernandez so glad to hear that the Auth0 team is looking into this! For my part, here are my answers:

1. Subscription: _Enterprise_
2. Environment Tag: _Development_ (but we’ve seen it on Staging as well)
3. Connections: _google-oauth2_ (but we’re adding SSO soon as well)
4. Region: US

I hope this helps!

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [September 18, 2024, 12:40pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/13 "2024-09-18T12:40:52Z")

</div>

Cool; thank you @rick.pasetto 🕶

All of that information is very helpful indeed, and thank you for providing it 😃

> 1. Environment Tag: _Development_ (but we’ve seen it on Staging as well)

So can I just confirm whether or not you are seeing this in _Production_ as well?

> 1. Subscription: _Enterprise_

As an _Enterprise_-level subscriber, I would highly recommend you open up a support case, tagging/linking the conversation here on _Community_. This will help to expedite matters to provide a speedier resolution…and in turn, in the spirit of collaboration, also help all concerned. Thank you 🤗

---

<div class="post-metadata">

**Author:** ![rick.pasetto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rick.pasetto/32/60320_2.png) [@rick.pasetto](https://community.auth0.com/u/rick.pasetto)\
**Post date:** [September 19, 2024, 5:28pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/14 "2024-09-19T17:28:54Z")

</div>

> [@peter.fernandez](#):
>
> So can I just confirm whether or not you are seeing this in _Production_ as well?

I have not tried yet, but will do so.

> [@peter.fernandez](#):
>
> As an _Enterprise_-level subscriber, I would highly recommend you open up a support case, tagging/linking the conversation here on _Community_…

Done, if I get a resolution I’ll post it here. Thanks!

---

<div class="post-metadata">

**Author:** ![reuben1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/reuben1/32/60661_2.png) [@reuben1](https://community.auth0.com/u/reuben1)\
**Post date:** [September 20, 2024, 5:48am UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/15 "2024-09-20T05:48:09Z")

</div>

Hi, I’m also seeing this in our application in production.

1. Subscription: B2C - Essentials
2. Environment Tag: Production
3. Auth0 Connections: Username-Password-Authentication, apple, google-oauth2
4. Region: US-4

We are seeing a number of failure events with this error even though the /.well-known/apple-app-site-association on our custom domain returns a valid JSON string with our correct TeamID. We’ve been seeing this for a while and have tried multiple things to fix it, but no luck.

---

<div class="post-metadata">

**Author:** ![henry\_csft](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/henry_csft/32/54553_2.png) [@henry\_csft](https://community.auth0.com/u/henry_csft)\
**Post date:** [September 21, 2024, 7:49pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/16 "2024-09-21T19:49:55Z")

</div>

We are also seeing this consistently in a tenant set to production. Our development tenant does not see this consistently and settings are mostly identical. There were a few times where the error showed in development, but a reinstall of the app cleared it up; and may have been due to our transition between app builds that had webcredentials configured differently.

This app has not been previously released in the app store.  
It is using custom domains.  
`YOUR_AUTH0_DOMAIN_OR_CUSTOM_DOMAIN`“/.well-known/apple-app-site-association” looks fine, and matches `https://app-site-association.cdn-apple.com/a/v1/YOUR_AUTH0_DOMAIN_OR_CUSTOM_DOMAIN` .

1. Subscription: _Professional B2C /custom_
2. Environment Tag: _Production_
3. Connections: _Username-Password-Authentication_
4. Region: _US-4_

---

<div class="post-metadata">

**Author:** ![reuben1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/reuben1/32/60661_2.png) [@reuben1](https://community.auth0.com/u/reuben1)\
**Post date:** [September 23, 2024, 11:24pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/17 "2024-09-23T23:24:37Z")

</div>

@peter.fernandez I watched this happen with a user immediately after they downloaded our app off the App Store. They ran into this error. I believe it may have fixed itself after a few hours, but this is extremely frustrating for us as developers to lose a significant chunk of our users to an error before they ever have the chance to interact with our app.

Do you have any more info from the team about what could be causing this?

---

<div class="post-metadata">

**Author:** ![chad.timmerman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chad.timmerman/32/60803_2.png) [@chad.timmerman](https://community.auth0.com/u/chad.timmerman)\
**Post date:** [September 25, 2024, 2:11am UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/18 "2024-09-25T02:11:02Z")

</div>

Has there been any movement on this? We just setup a production tenet (us based) and I’m seeing this same issue. Dev tenet works as expected, and as far as we can tell everything in the prod tenet is setup the exact same way. Only appears to be an issue with iOS (native sdk)

---

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [September 25, 2024, 5:09pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/19 "2024-09-25T17:09:40Z")

</div>

Thank you for joining the community and sharing your feedback on this, @reuben1; I am sorry to hear this situation has had the impact it has, and, of course, this is far from ideal! I’d also like to welcome @chad.timmerman, and share with both of you - as well as everyone else here - that this is something we are actively looking into. However, as it stands, we don’t currently have a resolution right now sadly 😞 I will, of course, keep this community channel posted with any updates as they become available; thank you all for your continued patience 🤗

P.s. just to reiterate: if you are experiencing this issue and you do have a paid subscription with Auth0 that includes support, I recommend you open a support case, tagging/linking the conversation here on _Community_. Thank you 🙂

---

<div class="post-metadata">

**Author:** ![chad.timmerman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chad.timmerman/32/60803_2.png) [@chad.timmerman](https://community.auth0.com/u/chad.timmerman)\
**Post date:** [September 25, 2024, 5:51pm UTC](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847/20 "2024-09-25T17:51:56Z")

</div>

Thanks @peter.fernandez

So for our issue, I was able to resolve it when I was creating a sample app the submit to the support team. My issue was with the development tenet plist file getting copied when trying to point to the production tenet. Once I confirmed that correct plist file was being used for production, everything seems to be working as expected.

I would suggest that everyone double check and confirm that the correct `ClientId` & `Domain` are being used.

[Next page](https://community.auth0.com/t/ios-application-not-recognizing-auth0-associated-domain/134847.md?page=2)
