Add Linkding OIDC via Authelia, fix jwks key name in config
- linkding: add OIDC env vars pointing to Authelia as identity provider - authelia/config: fix issuer_private_keys → jwks (correct key for 4.38.x) and replace non-functional template function with host-managed note
This commit is contained in:
@@ -51,3 +51,28 @@ regulation:
|
||||
max_retries: 3
|
||||
find_time: 2m
|
||||
ban_time: 5m
|
||||
|
||||
identity_providers:
|
||||
oidc:
|
||||
hmac_secret: ${AUTHELIA_IDENTITY_PROVIDERS_OIDC_HMAC_SECRET}
|
||||
jwks:
|
||||
- key_id: main
|
||||
algorithm: RS256
|
||||
use: sig
|
||||
# key: HOST-MANAGED — inline /srv/authelia/config/oidc.key contents here in the
|
||||
# host copy (/srv/authelia/config/configuration.yml). Never commit the key to git.
|
||||
# Generate with: openssl genrsa -out /srv/authelia/config/oidc.key 4096
|
||||
clients:
|
||||
- client_id: linkding
|
||||
client_name: Linkding
|
||||
client_secret: '${AUTHELIA_OIDC_CLIENT_SECRET_LINKDING}'
|
||||
public: false
|
||||
authorization_policy: one_factor
|
||||
redirect_uris:
|
||||
- https://linkding.kolpacksoftware.com/oidc/callback/
|
||||
scopes:
|
||||
- openid
|
||||
- profile
|
||||
- email
|
||||
- groups
|
||||
userinfo_signed_response_alg: none
|
||||
|
||||
@@ -10,6 +10,15 @@ services:
|
||||
- VIRTUAL_HOST=linkding.kolpacksoftware.com
|
||||
- VIRTUAL_PORT=9090
|
||||
- LETSENCRYPT_HOST=linkding.kolpacksoftware.com
|
||||
# Authelia OIDC
|
||||
- LD_ENABLE_OIDC=True
|
||||
- LD_OIDC_OP_AUTHORIZATION_ENDPOINT=https://auth.kolpacksoftware.com/api/oidc/authorization
|
||||
- LD_OIDC_OP_TOKEN_ENDPOINT=https://auth.kolpacksoftware.com/api/oidc/token
|
||||
- LD_OIDC_OP_USER_ENDPOINT=https://auth.kolpacksoftware.com/api/oidc/userinfo
|
||||
- LD_OIDC_OP_JWKS_ENDPOINT=https://auth.kolpacksoftware.com/jwks.json
|
||||
- LD_OIDC_RP_CLIENT_ID=linkding
|
||||
- LD_OIDC_RP_CLIENT_SECRET=${LINKDING_OIDC_CLIENT_SECRET}
|
||||
- LD_OIDC_RP_SIGN_ALGO=RS256
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user