# Using multiple auth domains and support multiple issuers

**URL:** <https://community.auth0.com/t/using-multiple-auth-domains-and-support-multiple-issuers/124723>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-php\
**Created:** [January 12, 2024, 11:56am UTC](https://community.auth0.com/t/using-multiple-auth-domains-and-support-multiple-issuers/124723 "2024-01-12T11:56:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![raju-cimpress](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/raju-cimpress/32/53895_2.png) [@raju-cimpress](https://community.auth0.com/u/raju-cimpress)\
**Post date:** [January 12, 2024, 11:56am UTC](https://community.auth0.com/t/using-multiple-auth-domains-and-support-multiple-issuers/124723/1 "2024-01-12T11:56:42Z")

</div>

> **[GitHub - auth0/auth0-PHP: PHP SDK for Auth0 Authentication and Management APIs.](https://github.com/auth0/auth0-PHP)**
>
> PHP SDK for Auth0 Authentication and Management APIs. - GitHub - auth0/auth0-PHP: PHP SDK for Auth0 Authentication and Management APIs.

Is there any way to use multiple auth domains and support tokens from multiple issuers simultaneously.

---

<div class="post-metadata">

**Author:** ![evansims](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/evansims/32/27011_2.png) [@evansims](https://community.auth0.com/u/evansims)\
**Post date:** [January 13, 2024, 8:38pm UTC](https://community.auth0.com/t/using-multiple-auth-domains-and-support-multiple-issuers/124723/2 "2024-01-13T20:38:17Z")

</div>

Hey @raju-cimpress 👋

Although this is something we’d like to inherently support in the next major release, it’s not currently possible to support multiple domains simultaneously. You need to provide a single, specific domain at SDK initialization time.

You could workaround this by capturing errors (like token validation failures) and falling back through a list of domains you wish to support, as the domain configured with the SDK can be changed at runtime, but I realize that isn’t ideal.

We do support multiple issuer checks, however. The `audience` configuration parameter of the SDK accepts an array of strings.

You can review the configuration class’ available options [here](https://github.com/auth0/auth0-PHP/blob/5d132ad4b3b95c5d5d342d09088d469568bfa627/src/Configuration/SdkConfiguration.php#L62-L115).

---

<div class="post-metadata">

**Author:** ![raju-cimpress](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/raju-cimpress/32/53895_2.png) [@raju-cimpress](https://community.auth0.com/u/raju-cimpress)\
**Post date:** [January 15, 2024, 2:40pm UTC](https://community.auth0.com/t/using-multiple-auth-domains-and-support-multiple-issuers/124723/3 "2024-01-15T14:40:08Z")

</div>

Thanks @evansims.  
I try the option of changing domain on runtime.  
Looking forward to multiple domain support in coming releases of SDK.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 29, 2024, 2:40pm UTC](https://community.auth0.com/t/using-multiple-auth-domains-and-support-multiple-issuers/124723/4 "2024-01-29T14:40:38Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
