triauth for Synology DSMOIDC
Let your team open the DSM desktop of your Synology NAS with one approval on their own device, and no DSM password to type.
- Sign-in through
- OpenID Connect bridge
- Available in
- DSM 7.2 and newer
- Set up in
- Control Panel › Domain/LDAP › SSO Client
About Synology DSM
DSM, DiskStation Manager, is the operating system of Synology NAS devices. It is a desktop in the browser for file sharing, backups, photos, surveillance, and the other packages a NAS runs. Households and small IT teams use it as their file server and application host.
Connect Synology DSM to triauth
Synology DSM signs people in through the triauth OpenID Connect bridge, with the SSO Client built into DSM. Once connected, the DSM login page offers SSO as a sign-in method, under the name you give the profile. People on your team choose it, type their username, and approve on their own device. Nobody types a DSM password, and when someone leaves, removing their identity records at your domain ends their sign-in through the bridge, and disabling their DSM user closes the rest.
How it works
In DSM, open Control Panel › Domain/LDAP › SSO Client, tick Enable OpenID Connect SSO service, and click OpenID Connect SSO Settings. Choose OIDC as the profile.
Open oidc.triauth.org and enter your domain. Paste the address of DSM as your browser reaches it,
https://nas.example.com:5001with your own address in place ofnas.example.com:5001, as the redirect address, and click Connect app. The bridge gives you a client ID and a client secret.Back in DSM, fill in the fields below with your domain in place of
example.comand your DSM address in place ofnas.example.com:5001, and save.Field Value Account type Domain/LDAP/local Name example.comWell-known URL https://oidc.triauth.org/example.com/.well-known/openid-configurationApplication ID and Application Secret the client ID and the client secret from the bridge Redirect URI https://nas.example.com:5001Authorization scope openid profile emailUsername claim preferred_usernameMake sure every person has a DSM user named exactly like their username,
johnforjohn@example.com. Then open the DSM login page and choose the SSO sign-in.
Checkpoint
DSM's login page offers an SSO sign-in under the profile's name. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve. DSM then opens their desktop.
Good to know
- DSM creates no accounts at sign-in. Each person needs a DSM user, local or from a directory the NAS has joined, named exactly like their username. To let only one team in, limit the app to a group when you connect it.
- Shared folders and permissions follow the DSM user and its DSM groups. The groups published at your domain are not used.
- The sign-in covers the DSM desktop and the packages that open inside it. DSM takes one redirect address, so a package reached on a port of its own is not covered, and Synology publishes nothing about its mobile apps and this sign-in, so count on them keeping their DSM passwords.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | the DSM address as the browser reaches it, https://<your-nas>:5001 or the address behind your reverse proxy, with no path. An address such as https://192.168.1.10:5001 works too, since only the browser follows it |
| Where in DSM | Control Panel › Domain/LDAP › SSO Client › OpenID Connect SSO Settings, profile OIDC |
| Well-known URL | the bridge's discovery document in full. DSM takes no addresses by hand |
| Scope | space separated, openid profile email |
| Username claim | preferred_username, the person's username. It contains no character that DSM forbids in a user name |
| Account type | Domain/LDAP/local lets local DSM users sign in. The other choice matches directory users only |
DSM keeps the client secret, as far as the published setups show, so leave This app can't keep a secret unticked when you connect it on the bridge. Synology's SSO Client help describes every field.
Next steps
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to limit the NAS to one team when you connect it.
- Read Synology's SSO Client help for every setting DSM offers.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.