I’m running Traefik + Authentik + Vikunja via Docker. So far I’ve had success logging into Vikunja via the classic username and password method (local auth?) but SSO is proving more difficult. Side note: I tried to disable local auth but that doesn’t stop the username and password textareas from showing, just shows a JWT missing error when I press login.
Trying to set up Authentik as an OpenID provider for Vikunja is proving to be difficult. I used the Traefik 2 guide from your docs and the guide from the Authentic docs too (Vikunja | authentik).
The issue seems to be that Vikunja can’t access the openid-configuration file, but I can access it just fine from my web browser via the link in the error. The error is this:
Pinging the IP is fine, no problems there. Curl is not working though, it hangs. I tested curling the url on my regular terminal and it works properly. Weird.
Running curl with the verbose flag just returns this: * Trying 188.166.231.66:443...
I tried a clean Alpine container and the issue exists there too.
In Ubuntu the issue persists, but the version of cURL it uses has more output. Also, I let it properly time out this time.
root@6a01ce310146:/# curl -v https://auth.adept.org.au/
* Hostname was NOT found in DNS cache
* Trying 188.166.231.66...
* connect to 188.166.231.66 port 443 failed: Connection timed out
* Failed to connect to auth.adept.org.au port 443: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to auth.adept.org.au port 443: Connection timed out
GET HTTPS akserver FROM vikunja_api-1: refused (port 443)
GET HTTPS akserver:9443 FROM vikunja_api-1: not refused, but curl has a problem with the self-signed cert
GET HTTPS authentik.fqdn FROM vikunja_api-1: resolves to the correct IP and port 443 as per Traefik config, but times out
GET HTTPS akserver FROM authentik-server-1: refused (port 443)
GET HTTPS akserver:9443 FROM authentik-server-1: accepted but curl rejects self-signed cert
GET HTTPS authentik.fqdn FROM authentik-server-1: resolves to the correct IP and port 443 as per Traefik config, but times out
GET HTTPS authentik.fqdn FROM traefik-1: resolves to the correct IP and port 443 as per Traefik config, but times out
GET HTTPS google.com FROM traefik-1: success
GET HTTPS www.fqdn FROM traefik-1: success
Right, this is a real-time update. Allowed port 443/tcp in ufw and it’s no longer timing out.
I assumed that wasn’t going to be the solution since everything else was already working without doing so, but anyway…
For anybody else having this issue: the fix is, make sure the provider is set to use the RSA signing key, otherwise it defaults to HS265 instead of RS256.