OIDC/Authentik configuration issues
I am having issues getting the OIDC integration working with my Authentik setup. Configurations is as follows
Homarr:
Authentik:
Redirect URI: https://home.mydomain.com/api/auth/callback/oidc
(Everything else default)
When I try to use the OAUTH Login i get redirected to:
http://localhost:7575/api/auth/error?error=OAuthSignin
Which seems odd?
Logs are as follows:
Anyone able to point me in the right direction? I am stumped
Homarr:
Authentik:
Redirect URI: https://home.mydomain.com/api/auth/callback/oidc
(Everything else default)
When I try to use the OAUTH Login i get redirected to:
http://localhost:7575/api/auth/error?error=OAuthSignin
Which seems odd?
Logs are as follows:
Anyone able to point me in the right direction? I am stumped
Solution
See my edits to your config below:
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- /media/homarr/configs:/app/data/configs
- /media/homarr/icons:/app/public/icons
- /media/homarr/data:/data
ports:
- 7575:7575
environment:
BASE_URL: home.mydomain.com
NEXTAUTH_URL: home.mydomain.com
NEXTAUTH_SECRET: RANDOM488383!!@
AUTH_PROVIDER: credentials,oidc
AUTH_OIDC_URI: https://home.mydomain.com/application/o/homarr
AUTH_OIDC_CLIENT_SECRET: SECRET
AUTH_OIDC_CLIENT_ID: ID
AUTH_OIDC_CLIENT_NAME: Authentik
AUTH_OIDC_ADMIN_GROUP: authentik Admins
AUTH_OIDC_OWNER_GROUP: authentik Admins
networks: {}