Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:immich [2025/02/24 10:25] – [SSO authentication setup] willy | services:immich [2025/03/19 10:04] (current) – [SSO authentication setup] willy | ||
|---|---|---|---|
| Line 18: | Line 18: | ||
| Immich needs to be installed using a docker compose file. This is the official and only supported installation method. I will show you, of course, how to run it rootless with podman. Immich installation is detailed [[https:// | Immich needs to be installed using a docker compose file. This is the official and only supported installation method. I will show you, of course, how to run it rootless with podman. Immich installation is detailed [[https:// | ||
| - | I assume you have already created the photo user and group (see [[services: | + | I assume you have already created the photo user and group (see [[selfhost: |
| <code bash> | <code bash> | ||
| useradd -d / | useradd -d / | ||
| Line 116: | Line 116: | ||
| Immich support direct integration with [[selfhost: | Immich support direct integration with [[selfhost: | ||
| - | First of all, you need to configure Authelia with a new: | + | First of all, you need to configure Authelia with a new client: |
| < | < | ||
| identity_providers: | identity_providers: | ||
| Line 126: | Line 125: | ||
| - client_id: << see below to generate ClientID >> | - client_id: << see below to generate ClientID >> | ||
| client_name: | client_name: | ||
| - | client_secret: | + | client_secret: |
| public: false | public: false | ||
| authorization_policy: | authorization_policy: | ||
| Line 144: | Line 143: | ||
| authelia crypto rand --length 72 --charset rfc3986 | authelia crypto rand --length 72 --charset rfc3986 | ||
| </ | </ | ||
| + | This information will need to copied to both authelia config and immich settings. | ||
| To generate a Client Secret: | To generate a Client Secret: | ||
| Line 149: | Line 149: | ||
| authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986 | authelia crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986 | ||
| </ | </ | ||
| + | Please note **both** the hash and the password itself! You will need the password itself in the next step. | ||
| + | |||
| + | Then you need to configure Immich to use Authelia SSO, so go to //Immich web gui → administration → settings → Authentication settings// and enter the following information: | ||
| + | * Issuer URL: https:// | ||
| + | * Client ID: << the generated ClientID >>. | ||
| + | * Client Secret: << the random password generated above, not the digest >>. | ||
| + | * Scope: openid profile email. | ||
| + | * Button Text: Login with Authelia. | ||
| + | * Auto Register: Enable if desired. | ||
| + | |||
| + | |||