OIDC with Authelia / Error: Unexpected token e in JSON at position 0
Hello,
I've migrated Immich to a new server. The database and photos have been imported successfully. The previous server used Authentik and used to work just fine.
On this server I'd like to migrate to Authelia and Traefik. Redirect and certificates are working as expected. I can log in to Immich using my password. In Administration I've reset the OAuth settings to the ones configured in Authelia. When I click the "Login with OAuth" button on the login page, I'm redirected to Authelia, I can log in successfully, but after that I'm redirected to Immich's login page where there's a message saying "Internal Server Error".
The Docker logs list the following:
I'll post the Authelia configuration in another message.
6 Replies
Here's the OIDC configuration for Authelia:
It's expecting a JSON response but not getting one, and with the
e
I would guess the response starts with error
Do the authelia logs say anything?Here's what's in Authelia's log:
I'm using Traefik as a reverse proxy, if that matters.
What is the pre configured content thing?
I beg your pardon? What thing?
Hi, @bo0tzz! Have you had a chance to see the Authelia log I pasted yesterday? Does it help?
I think I've found the culplrit:
userinfo_signing_algorithm: RS256
in Authelia should be userinfo_signing_algorithm: none
.Hi, I have a similar error, altough it is not the "unexpected token e ..." its the "SyntaxError: Unexpected token < in JSON at position 0..." that gets thrown from the immich server when trying to log in via oidc with authelia. Did you maybe already also saw this error? And could you show your OAuth Authentication Immich settings?
Just to document it, after searching in other threads too, I saw that the issuer URL should be something like https://auth.domain.com after adapting that it works like a charm.