# Authorization from a PHP file

**URL:** <https://community.auth0.com/t/authorization-from-a-php-file/109832>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [June 23, 2023, 6:51am UTC](https://community.auth0.com/t/authorization-from-a-php-file/109832 "2023-06-23T06:51:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewyoung245](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@matthewyoung245](https://community.auth0.com/u/matthewyoung245)\
**Post date:** [June 23, 2023, 6:51am UTC](https://community.auth0.com/t/authorization-from-a-php-file/109832/1 "2023-06-23T06:51:00Z")

</div>

I keep getting the error below:

Callback URL mismatch

[https://127.0.0.1:3000/callback](https://127.0.0.1:3000/callback) is not in the list of allowed callback URLs

The callback url and logout url are both the same along with the autho\_BASE\_URL.

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

![image](https://global.discourse-cdn.com/auth0/original/3X/7/a/7af646d1fc29ebb790e6b512dc4436144d4aa4d7.png)

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

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 26, 2023, 5:53pm UTC](https://community.auth0.com/t/authorization-from-a-php-file/109832/3 "2023-06-26T17:53:51Z")

</div>

Hi @matthewyoung245,

Have you tried adding `https://127.0.0.1:3000/callback` to the list of allowed callback URLs?

---

<div class="post-metadata">

**Author:** ![matthewyoung245](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@matthewyoung245](https://community.auth0.com/u/matthewyoung245)\
**Post date:** [July 1, 2023, 2:36pm UTC](https://community.auth0.com/t/authorization-from-a-php-file/109832/4 "2023-07-01T14:36:25Z")

</div>

That worked thank you!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 5, 2023, 1:15pm UTC](https://community.auth0.com/t/authorization-from-a-php-file/109832/5 "2023-07-05T13:15:23Z")

</div>

Great! Let us know if you run into anything else!

---

<div class="post-metadata">

**Author:** ![matthewyoung245](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@matthewyoung245](https://community.auth0.com/u/matthewyoung245)\
**Post date:** [July 6, 2023, 5:36pm UTC](https://community.auth0.com/t/authorization-from-a-php-file/109832/6 "2023-07-06T17:36:44Z")

</div>

How would I link to a file from the index.php file that is within the same application. For example, a button within the index.php is clicked and then is href to a test.php located within a Test folder. The link would be Test/test.php. I tried this and it doesn’t show any information from the test.php but rather just a blank page.  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/5/7512001922eae55aaa4b939d2f3804b59464d9af.png)

---

<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:** [July 20, 2023, 5:36pm UTC](https://community.auth0.com/t/authorization-from-a-php-file/109832/7 "2023-07-20T17:36:45Z")

</div>

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