Skip to content

OIDC using Authentik leading to 500 errorΒ #73

@requ1Re

Description

@requ1Re

Hi, I am trying to configure authentik as my External Identity Provider but I am always met with an error.

I have set it up using the usual values. When I click on "Sign in with [...]" on the "SSO" Tab of the login page, I get redirected to Authentik as expected, but when I confirm the login and get redirected back, I am met with a 500 Internal Server Error. The log shows the following error:

# SERVER_ERROR:  467 |   let { baseURL, params, query } = option || {
468 |     query: {},
469 |     params: {},
470 |     baseURL: ""
471 |   };
472 |   let basePath = url.startsWith("http") ? url.split("/").slice(0, 3).join("/") : baseURL || "";
                       ^
TypeError: undefined is not an object (evaluating 'url.startsWith')
      at getURL2 (/app/node_modules/@better-fetch/fetch/dist/index.js:472:18)
      at <anonymous> (/app/node_modules/@better-fetch/fetch/dist/index.js:521:16)

I have tried to set this up multiple times but I didn't manage to do it.

Any help would be appreciated, thank you!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions