OICD login using Authentik
Hi everyone,
thanks for this awesome piece of software. I noted that the OIDC-login has recently been added.
I now wanted to integrate it in our own selfhosted Authentik instance. But every URL I entered, didn't work.
Which one should be used?
Thanks for your help in advance! Lars
It looks like the URL should be https://server2.blumagine.de:9443/application/o/listmonk. What do you get when trying this URL?
That's what I though as well:
Ah, the issue seems to be, that the Let's Encrypt cert is not recognized:
2024/12/11error initializing OIDC OAuth provider: Get "https://server2.blumagine.de:9443/application/o/listmonk/.well-known/openid-configuration": tls: failed to verify certificate: x509: certificate signed by unknown authority
hm, that's weird. It looks like in your server environment, the root/CA certificate of LetsEncrypt is missing from the OS certificate trust store for some reason.
Resolved the ssl cert issue. Still missing something
I get the same exact error message after configuring SSO with Microsoft Azure.
This issue has been marked 'stale' after 90 days of inactivity. If there is no further activity, it will be closed in 7 days.
I just got the following error with my Authentik instance:
2025-03-15T23:59:42.499845282Z 2025/03/15 23:59:42.499637 auth.go:97: error initializing OIDC OAuth provider: oidc: issuer did not match the issuer returned by provider, expected "https://auth.devminer.xyz/application/o/news" got "https://auth.devminer.xyz/application/o/news/"
If you also encounter this, add the trailing slash in the Listmonk configuration.
For those trying to get Listmonk working with Authentik OIDC, see my comments in #2209.
I had a similar issue just recently. I realized it was an error on my side: When renaming an application in authentik, the slug of the application also gets changed. This will result in errors e.g. with OIDC-applications because the configured path is no longer valid. The slug-field automatically gets overwritten but I didn't see it at the time and there was no warning. See also here: https://github.com/goauthentik/authentik/issues/13690 To fix this, I had to reset the slug of the application (authentik logs are helpful as they show past slugs too) and restart listmonk. Restarting listmonk is key, as it initializes OIDC when its started and won't retry after a fail (which, honestly, is totally fine)
This issue has been marked 'stale' after 90 days of inactivity. If there is no further activity, it will be closed in 7 days.