H
Homarr4w ago
Whinis

Can't Enable SSO

I am running homarr in a portainer instance with docker compose. I attempted to follow https://homarr.dev/docs/advanced/sso but it seems regardless of what I set my ENV variables to I only get local login
Solution:
It is AUTH_PROVIDERS so with an S on the end
Jump to solution
7 Replies
Cakey Bot
Cakey Bot4w ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Whinis
WhinisOP4w ago
here is the only log I see
2025-03-08T04:07:58.698Z info: user test was not found

2025-03-08T04:07:58.712Z error: y: Read more at https://errors.authjs.dev#credentialssignin

at oZ (/app/apps/nextjs/.next/server/chunks/7726.js:489:46332)

at async o8 (/app/apps/nextjs/.next/server/chunks/7726.js:489:55169)

at async ae (/app/apps/nextjs/.next/server/chunks/7726.js:489:57629)

at async d (/app/apps/nextjs/.next/server/app/api/auth/[...nextauth]/route.js:1:3658)

at async tr.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:17582)

at async tr.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:22212)

at async doRender (/app/node_modules/next/dist/server/base-server.js:1452:42)

at async responseGenerator (/app/node_modules/next/dist/server/base-server.js:1822:28)

at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/next/dist/server/base-server.js:1832:28)

at async NextNodeServer.renderPageComponent (/app/node_modules/next/dist/server/base-server.js:2259:24)

The above error also had these properties on it:

{

name: 'y',

type: 'CredentialsSignin',

kind: 'signIn',

code: 'credentials'

}
2025-03-08T04:07:58.698Z info: user test was not found

2025-03-08T04:07:58.712Z error: y: Read more at https://errors.authjs.dev#credentialssignin

at oZ (/app/apps/nextjs/.next/server/chunks/7726.js:489:46332)

at async o8 (/app/apps/nextjs/.next/server/chunks/7726.js:489:55169)

at async ae (/app/apps/nextjs/.next/server/chunks/7726.js:489:57629)

at async d (/app/apps/nextjs/.next/server/app/api/auth/[...nextauth]/route.js:1:3658)

at async tr.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:17582)

at async tr.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:22212)

at async doRender (/app/node_modules/next/dist/server/base-server.js:1452:42)

at async responseGenerator (/app/node_modules/next/dist/server/base-server.js:1822:28)

at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/next/dist/server/base-server.js:1832:28)

at async NextNodeServer.renderPageComponent (/app/node_modules/next/dist/server/base-server.js:2259:24)

The above error also had these properties on it:

{

name: 'y',

type: 'CredentialsSignin',

kind: 'signIn',

code: 'credentials'

}
Here is my compose section for homarr
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
volumes:
- /opt/authelia/homarr/appdata:/appdata
environment:
SECRET_ENCRYPTION_KEY: -
AUTH_PROVIDER: "oidc"
AUTH_OIDC_URI: "https://auth.h.domain.com"
AUTH_OIDC_CLIENT_SECRET: "-"
AUTH_OIDC_CLIENT_ID: "-"
AUTH_OIDC_CLIENT_NAME: "-"
AUTH_OIDC_AUTO_LOGIN: "true"
NEXTAUTH_URL: "https://dash.h.domain.com"
ports:
- '7575:7575'
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
volumes:
- /opt/authelia/homarr/appdata:/appdata
environment:
SECRET_ENCRYPTION_KEY: -
AUTH_PROVIDER: "oidc"
AUTH_OIDC_URI: "https://auth.h.domain.com"
AUTH_OIDC_CLIENT_SECRET: "-"
AUTH_OIDC_CLIENT_ID: "-"
AUTH_OIDC_CLIENT_NAME: "-"
AUTH_OIDC_AUTO_LOGIN: "true"
NEXTAUTH_URL: "https://dash.h.domain.com"
ports:
- '7575:7575'
version seems to be 1.0.0
Solution
Meierschlumpf
Meierschlumpf4w ago
It is AUTH_PROVIDERS so with an S on the end
Whinis
WhinisOP4w ago
I have copied that so many times, no idea how I missed that
Meierschlumpf
Meierschlumpf4w ago
So it works now? If so we can mark it as closed 😄
Whinis
WhinisOP4w ago
1 moment, its atleast failing differently 😄 ya some final tweaks and all if good. Thanks
Meierschlumpf
Meierschlumpf4w ago
Great, I'll close this post then, you can create a new one if you have another problem 👍🏽

Did you find this page helpful?