[Bug]: No way to set server_hostname when setting up OIDC with the UI #2510

Open
opened 2026-02-28 20:16:33 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @OneMoreByte on GitHub (Oct 1, 2025).

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

I configured the DNS name actual.example.com after setting the app up initially using forwarded ports and the localhost DNS name.

While doing the initial setup with the localhost DNS name, I used the UI to configure OIDC.

This caused actual to save "server_hostname":"http://localhost:5006" in the OIDC settings in the database.

When I got my actual.example.com DNS name set up, actual continued trying to use http://localhost:5006 as the redirect base URL.

I tried setting the ACTUAL_OPENID_SERVER_HOSTNAME variable to actual.example.com, but it didn't change the value in the database. (Maybe because I omitted https://?)

I ended up updating the value in the database manually, and it's now working.

How can we reproduce the issue?

  1. configure a fresh install of actual server using the DNS name "localhost".
  2. Add OIDC settings via the UI, while still using localhost.
  3. Connect with the DNS name that fits the redirect configured in OIDC provider. Logging in should give a redirect error.

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Firefox

Operating System

Linux

Originally created by @OneMoreByte on GitHub (Oct 1, 2025). ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? I configured the DNS name `actual.example.com` after setting the app up initially using forwarded ports and the `localhost` DNS name. While doing the initial setup with the `localhost` DNS name, I used the UI to configure OIDC. This caused actual to save `"server_hostname":"http://localhost:5006"` in the OIDC settings in the database. When I got my `actual.example.com` DNS name set up, actual continued trying to use `http://localhost:5006` as the redirect base URL. I tried setting the `ACTUAL_OPENID_SERVER_HOSTNAME` variable to `actual.example.com`, but it didn't change the value in the database. (Maybe because I omitted `https://`?) I ended up updating the value in the database manually, and it's now working. ### How can we reproduce the issue? 1. configure a fresh install of actual server using the DNS name "localhost". 2. Add OIDC settings via the UI, while still using localhost. 3. Connect with the DNS name that fits the redirect configured in OIDC provider. Logging in should give a redirect error. ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? Firefox ### Operating System Linux
GiteaMirror added the openidbug labels 2026-02-28 20:16:33 -06:00
Author
Owner

@Kyrodan commented on GitHub (Oct 2, 2025):

I can confirm I had the exact same issue.

@Kyrodan commented on GitHub (Oct 2, 2025): I can confirm I had the exact same issue.
Author
Owner

@youngcw commented on GitHub (Oct 2, 2025):

@lelemm

@youngcw commented on GitHub (Oct 2, 2025): @lelemm
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#2510