# Callback URL Mismatch between Salesforce and Auth0

**URL:** <https://community.auth0.com/t/callback-url-mismatch-between-salesforce-and-auth0/71599>\
**Category:** Get Help\
**Tags:** salesforce\
**Created:** [October 19, 2021, 4:11pm UTC](https://community.auth0.com/t/callback-url-mismatch-between-salesforce-and-auth0/71599 "2021-10-19T16:11:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![quanlinguo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/quanlinguo/32/32426_2.png) [@quanlinguo](https://community.auth0.com/u/quanlinguo)\
**Post date:** [October 19, 2021, 4:11pm UTC](https://community.auth0.com/t/callback-url-mismatch-between-salesforce-and-auth0/71599/1 "2021-10-19T16:11:49Z")

</div>

I set up an Auth. Provider in Salesforce using Auth0 as the IdP. The auth. provider generated a callback URL for a Salesforce community, which I used as the callback URL in Auth0 configuration.

Callback URL: `https://charlie-knowledge-developer-edition.na139.force.com/PartnerCentral/services/authcallback/Auth0`

But the Auth0 log shows this error:

Callback URL mismatch: `https://login.salesforce.com/services/authcallback/00D4W000001Wwp7UAC/Auth0` is not in the list of allowed callback URLs

Adding `https://login.salesforce.com/services/authcallback/00D4W000001Wwp7UAC/Auth0` to the callback URLs fixed the error. But notice the URL only has the org ID “00D4W000001Wwp7UAC”, nothing indicating the community. Of course, login to the community failed.

I also noticed that Salesforce did not generate Existing User Linking URLs for the Auth0 auth. provider. It should, as it does for other identity providers like Google and LinkedIn.

---

<div class="post-metadata">

**Author:** ![david.brossard](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.brossard/32/32475_2.png) [@david.brossard](https://community.auth0.com/u/david.brossard)\
**Post date:** [October 21, 2021, 5:39am UTC](https://community.auth0.com/t/callback-url-mismatch-between-salesforce-and-auth0/71599/2 "2021-10-21T05:39:56Z")

</div>

Hi Charlie,

My first question is: do you have a My Domain set up? There’s no reason the auth. provider should fail. Here’s my setup as an example.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/1/c/1ceda6cbb95e0a5db7e1ae75089c6d7c88c6af7a.png)

As you can see I have community-specific URLs in there. Here’s what I have in my allowed callback URLs on the Auth0 side:  
[Problem Logging In | Fix Coffee Plus](https://nextgenciam-developer-edition.na156.force.com/fixcoffee/services/authcallback/Fix_Coffee_Plus_Members), [Sign In with Auth0](https://nextgenciam-dev-ed.my.salesforce.com/services/auth/test/Fix_Coffee_Plus_Members), [Problem Logging In | Salesforce](https://nextgenciam-dev-ed.my.salesforce.com/services/authcallback/Fix_Coffee_Plus_Members)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 21, 2021, 9:04am UTC](https://community.auth0.com/t/callback-url-mismatch-between-salesforce-and-auth0/71599/3 "2021-10-21T09:04:39Z")

</div>

Teamwork makes the dreamwork!

---

<div class="post-metadata">

**Author:** ![quanlinguo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/quanlinguo/32/32426_2.png) [@quanlinguo](https://community.auth0.com/u/quanlinguo)\
**Post date:** [October 21, 2021, 3:21pm UTC](https://community.auth0.com/t/callback-url-mismatch-between-salesforce-and-auth0/71599/4 "2021-10-21T15:21:11Z")

</div>

David: Thanks! My config works once I aligned it with yours. You screen shot is a great reference. – Charlie

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 22, 2021, 11:56am UTC](https://community.auth0.com/t/callback-url-mismatch-between-salesforce-and-auth0/71599/5 "2021-10-22T11:56:48Z")

</div>

Thanks for helping on this one David!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 28, 2021, 12:09pm UTC](https://community.auth0.com/t/callback-url-mismatch-between-salesforce-and-auth0/71599/6 "2021-10-28T12:09:57Z")

</div>


