[Bug]: openid config.json crashes in version 25.4.0 #2069

Closed
opened 2026-02-28 20:02:31 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @SteinTokvam on GitHub (Apr 23, 2025).

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

In version 25.4.0 my oidc config broke.

undefined:1
https://<rest-of-my-auth-url>

SyntaxError: Unexpected token h in JSON at position 0
at JSON. parse (<anonymous>)
at coerce (/app/node_modules/convict/src/main.js:415:29)
at /app/node_modules/convict/src/main.js: 359:15
at Array.forEach (<anonymous>)
at overlay (/app/node_modules/convict/src/main.js:356:21)
at /app/node_modules/convict/src/main.js:364:7
at Array.forEach (<anonymous>)
at overlay (/app/node_modules/convict/src/main.js:356:21)
at /app/node_modules/convict/src/main.js:602:11
at Array.forEach (<anonymous>)

I got actual up and running by configuring everything from my config.json as env variables instead. I had

"openId": {
        "issuer": "URL for the OpenID Provider",
        "client_id": "client_id given by the provider",
        "client_secret": "client_secret given by the provider",
        "server_hostname": "your Actual Server URL (so the provider redirects you to this)",
        "authMethod": "oauth2"
    }

configured in config.json which was working in 25.3.1

How can we reproduce the issue?

How can we reproduce the issue?

use config.json with configuration for oidc on version 25.4.0 and it should break on startup. I Use Authelia as the provider.

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Firefox, Chrome

Operating System

Mac OSX

Originally created by @SteinTokvam on GitHub (Apr 23, 2025). ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? In version 25.4.0 my oidc config broke. ```bash undefined:1 https://<rest-of-my-auth-url> SyntaxError: Unexpected token h in JSON at position 0 at JSON. parse (<anonymous>) at coerce (/app/node_modules/convict/src/main.js:415:29) at /app/node_modules/convict/src/main.js: 359:15 at Array.forEach (<anonymous>) at overlay (/app/node_modules/convict/src/main.js:356:21) at /app/node_modules/convict/src/main.js:364:7 at Array.forEach (<anonymous>) at overlay (/app/node_modules/convict/src/main.js:356:21) at /app/node_modules/convict/src/main.js:602:11 at Array.forEach (<anonymous>) ``` I got actual up and running by configuring everything from my config.json as env variables instead. I had ```json "openId": { "issuer": "URL for the OpenID Provider", "client_id": "client_id given by the provider", "client_secret": "client_secret given by the provider", "server_hostname": "your Actual Server URL (so the provider redirects you to this)", "authMethod": "oauth2" } ``` configured in config.json which was working in 25.3.1 ### How can we reproduce the issue? ## How can we reproduce the issue? use config.json with configuration for oidc on version 25.4.0 and it should break on startup. I Use [Authelia](https://github.com/authelia/authelia) as the provider. ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? Firefox, Chrome ### Operating System Mac OSX
GiteaMirror added the bug label 2026-02-28 20:02:31 -06:00
Author
Owner

@lelemm commented on GitHub (Apr 23, 2025):

issuer

Hi @SteinTokvam , thanks for reaching out.
try to change your config to:

"openId": {
        "discoveryURL": "URL for the OpenID Provider",
        "client_id": "client_id given by the provider",
        "client_secret": "client_secret given by the provider",
        "server_hostname": "your Actual Server URL (so the provider redirects you to this)",
        "authMethod": "oauth2"
    }
@lelemm commented on GitHub (Apr 23, 2025): > issuer Hi @SteinTokvam , thanks for reaching out. try to change your config to: ``` "openId": { "discoveryURL": "URL for the OpenID Provider", "client_id": "client_id given by the provider", "client_secret": "client_secret given by the provider", "server_hostname": "your Actual Server URL (so the provider redirects you to this)", "authMethod": "oauth2" } ```
Author
Owner

@SteinTokvam commented on GitHub (Apr 23, 2025):

Haven't tried it yet, but you're absolutely right which makes sense since you made the change.
changed in this pr

My bad, and thank you for your time😊

@SteinTokvam commented on GitHub (Apr 23, 2025): Haven't tried it yet, but you're absolutely right which makes sense since you made the change. [changed in this pr](https://github.com/actualbudget/actual/pull/4530) My bad, and thank you for your time😊
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#2069