#Portainer “Unauthorized” error with authentik

1 messages · Page 1 of 1 (latest)

white olive
#

Having trouble setting up authentik with Portainer. Getting the error “Unauthorized” whenever I attempt to login with OAuth (see below). I have also attached screenshots of my Portainer config and authentik application and provider configs. Any idea what could be causing this? My thought was that it could have something to do with how I am running them behind Traefik. Each service is running on a different subdomain with a shared wildcard Let’sEncrypt certificate and I am using Pi-Hole for the local DNS. Thought the services may have trouble accessing each other on the backend possibly? Appreciate the help.

white olive
#

Portainer debug logs:

2024/07/27 08:02PM DBG oauth/oauth.go:34 > failed retrieving oauth token | error="Post \"https://authentik.local.reed920.xyz/application/o/token/\": dial tcp: lookup authentik.local.reed920.xyz on 127.0.0.11:53: no such host"

2024/07/27 08:02PM DBG auth/authenticate_oauth.go:76 > OAuth authentication error | error="Post \"https://authentik.local.reed920.xyz/application/o/token/\": dial tcp: lookup authentik.local.reed920.xyz on 127.0.0.11:53: no such host"

2024/07/27 08:02PM DBG security/bouncer.go:401 > HTTP error | error=Unauthorized msg="Unable to authenticate through OAuth" status_code=500