# Auth callback not using correct url?

**URL:** <https://community.forestadmin.com/t/auth-callback-not-using-correct-url/2642>\
**Category:** Help me!\
**Created:** [June 8, 2021, 3:52pm UTC](https://community.forestadmin.com/t/auth-callback-not-using-correct-url/2642 "2021-06-08T15:52:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drj17](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/drj17/32/2397_2.png) [@drj17](https://community.forestadmin.com/u/drj17)\
**Post date:** [June 8, 2021, 3:52pm UTC](https://community.forestadmin.com/t/auth-callback-not-using-correct-url/2642/1 "2021-06-08T15:52:17Z")

</div>

## Expected behavior

I can specify a different URL (in my case `http://localhost:8081`) and Forest Admin uses that

## Actual behavior

Forest Admin makes an initial auth request to the correct URL. In the network logs I see a request with the name “authentication” hitting `http://localhost:8081/forest/authentication`. I then see a request to `http://localhost:3000/forest/authentication/callback?code=code`. This request fails because there is no server running on that port. In the UI I get the “Unable to Authenticate You” error. This error does not occur if I run my server on port 3000 and specify that as the URL.

## Context

Please provide any relevant information about your setup.

- Package Version:  
Forest Liana 6.5.0

---

<div class="post-metadata">

**Author:** ![drj17](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/drj17/32/2397_2.png) [@drj17](https://community.forestadmin.com/u/drj17)\
**Post date:** [June 8, 2021, 5:12pm UTC](https://community.forestadmin.com/t/auth-callback-not-using-correct-url/2642/2 "2021-06-08T17:12:31Z")

</div>

Okay, realized this was caused by the the `forest_application_url` defaulting to `localhost:3000` still

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [June 9, 2021, 7:13am UTC](https://community.forestadmin.com/t/auth-callback-not-using-correct-url/2642/3 "2021-06-09T07:13:35Z")

</div>

Hey @drj17, and welcome to our community 👋

I’m able to reproduce. This is indeed an issue from our `forest_liana@6.x`. I’m opening a ticket on our end.

Thanks you for reporting this 🙌
