docker compose:
services:
web_app:
image: papermerge/papermerge:3.5.1
hostname: papermerge
networks:
- papermerge
- nginx-overlay
environment:
- UID=1000
- GID=10000
- PAPERMERGE__MAIN__TIMEZONE=Europe/Bucharest
- PAPERMERGE__SECURITY__SECRET_KEY=my-secret-key
- PAPERMERGE__AUTH__USERNAME=bender
- PAPERMERGE__AUTH__EMAIL=bender@mail.com
- PAPERMERGE__AUTH__PASSWORD=admin
- PAPERMERGE__OCR__DEFAULT_LANG_CODE=ron
- PAPERMERGE__OCR__LANG_CODES="eng,ron"
- PAPERMERGE__DATABASE__URL=postgresql://coco:jumbo@papermerge_db:5432/pmgdb
- PAPERMERGE__REDIS__URL=redis://papermerge_redis:6379/0
- PAPERMERGE__MAIN__MEDIA_ROOT=/var/media/pmg
- PAPERMERGE__AUTH__OIDC_CLIENT_SECRET=my-secret
- PAPERMERGE__AUTH__OIDC_CLIENT_ID=papermerge_oidc
- PAPERMERGE__AUTH__OIDC_AUTHORIZE_URL=https://authelia.my.domain/api/oidc/authorization
- PAPERMERGE__AUTH__OIDC_ACCESS_TOKEN_URL=https://authelia.my.domain/api/oidc/token
- PAPERMERGE__AUTH__OIDC_INTROSPECT_URL=https://authelia.my.domain/api/oidc/introspection
- PAPERMERGE__AUTH__OIDC_USER_INFO_URL=https://authelia.my.domain/api/oidc/userinfo
- PAPERMERGE__AUTH__OIDC_LOGOUT_URL=https://authelia.my.domain/api/oidc/revocation
- PAPERMERGE__AUTH__OIDC_SCOPE="openid email profile name"
- PAPERMERGE__AUTH__OIDC_REDIRECT_URL=https://papermerge.my.domain/oidc/callback
volumes:
- /mnt/nas/documents/papermerge:/var/media/pmg
depends_on:
- db
- redis
deploy:
placement:
constraints:
- node.hostname==docker-containers
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
client_id: 'papermerge_oidc'
client_name: 'Papermerge'
client_secret: '$pbkdf2-secret-digest'
public: false
authorization_policy: one_factor
introspection_endpoint_auth_method: client_secret_post
scopes:
- 'openid'
- 'profile'
- 'email'
- 'groups'
redirect_uris:
- https://papermerge.my.domain/oidc/callback
The only error that I see in authelia's log is when I'm trying to log in using the superuser account
{"level":"error","method":"POST","msg":"Introspection Request with id '069053c0-b2bb-45f2-944d-6554c675fb1b' failed with error: Token is inactive because it is malformed, expired or otherwise invalid. An introspection strategy indicated that the token is inactive. The request could not be authorized. Check that you provided valid credentials in the right format. Could not find the requested resource(s).","path":"/api/oidc/introspection","remote_ip":"172.18.0.1","stack":[{"File":"github.com/authelia/authelia/v4/internal/handlers/handler_oauth2_introspection.go","Line":32,"Name":"OAuth2IntrospectionPOST"},{"File":"github.com/authelia/authelia/v4/internal/middlewares/http_to_authelia_handler_adaptor.go","Line":114,"Name":"RegisterOpenIDConnectRoutes.NewHTTPToAutheliaHandlerAdaptor.func23"},{"File":"github.com/authelia/authelia/v4/internal/middlewares/bridge.go","Line":66,"Name":"RegisterOpenIDConnectRoutes.(*BridgeBuilder).Build.func2.1"},{"File":"github.com/authelia/authelia/v4/internal/middlewares/headers.go","Line":105,"Name":"SecurityHeadersNoStore.func1"},{"File":"github.com/valyala/fasthttp@v1.62.0/server.go","Line":773,"Name":"(*RequestCtx).UserValue"},{"File":"github.com/authelia/authelia/v4/internal/middlewares/headers.go","Line":30,"Name":"SecurityHeadersBase.func1"},{"File":"github.com/authelia/authelia/v4/internal/middlewares/cors.go","Line":216,"Name":"RegisterOpenIDConnectRoutes.(*CORSPolicy).Middleware.func24"},{"File":"github.com/fasthttp/router@v1.5.4/router.go","Line":441,"Name":"(*Router).Handler"},{"File":"github.com/authelia/authelia/v4/internal/middlewares/log_request.go","Line":14,"Name":"handlerMain.LogRequest.func31"},{"File":"github.com/authelia/authelia/v4/internal/middlewares/errors.go","Line":38,"Name":"RecoverPanic.func1"},{"File":"github.com/valyala/fasthttp@v1.62.0/server.go","Line":2455,"Name":"(*Server).serveConn"},{"File":"github.com/valyala/fasthttp@v1.62.0/workerpool.go","Line":225,"Name":"(*workerPool).workerFunc"},{"File":"github.com/valyala/fasthttp@v1.62.0/workerpool.go","Line":197,"Name":"(*workerPool).getCh.func1"},{"File":"runtime/asm_amd64.s","Line":1700,"Name":"goexit"}],"time":"2025-05-31T16:54:02+03:00"}
Description
Hello, I've followed the instructions on setting up OIDC authentication, but no matter what I do the button "Login with OIDC" doesn't appear.
I'm using Authelia as my provider, but I've also tried using Keycloak.
The normal authentication doesn't work either when the OIDC is enabled.
There are no errors in the logs when starting up.
Info:
authelia client config:
The only error that I see in authelia's log is when I'm trying to log in using the superuser account