triauth for FreshRSSOIDC
Let your household or team open FreshRSS with one approval on their own device, and no FreshRSS passwords.
- Sign-in through
- OpenID Connect bridge
- Available in
- FreshRSS 1.23 and newer
- Set up in
- Environment variables
About FreshRSS
FreshRSS is a self-hosted feed reader. It fetches the websites and blogs you follow and shows the articles in a clean web interface, for one person or several people on the same server. Mobile apps connect through its reader APIs.
Connect FreshRSS to triauth
FreshRSS signs people in through the triauth OpenID Connect bridge. Once connected, opening FreshRSS sends people straight to the bridge, where they type their username and approve on their own device. Nobody keeps a FreshRSS password, and when someone leaves, removing their identity records at your domain ends their access to FreshRSS as well.
How it works
Open oidc.triauth.org and enter your domain. Paste FreshRSS's redirect address,
https://rss.example.com/i/oidc/with your own FreshRSS address in place ofrss.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to the environment of the FreshRSS container and restart it. Replace
example.comwith your domain, the two placeholders with the client ID and the client secret from the bridge, and the crypto key with a long random string of your own.iniOIDC_ENABLED=1 OIDC_PROVIDER_METADATA_URL=https://oidc.triauth.org/example.com/.well-known/openid-configuration OIDC_CLIENT_ID=<client ID from the bridge> OIDC_CLIENT_SECRET=<client secret from the bridge> OIDC_CLIENT_CRYPTO_KEY=<a long random string> OIDC_SCOPES=openid email profile OIDC_SESSION_INACTIVITY_TIMEOUT=3600 OIDC_X_FORWARDED_HEADERS=X-Forwarded-Proto X-Forwarded-HostIn FreshRSS, make sure the administrator's user name equals their username at your domain, such as
admin, then choose HTTP under Administration › Authentication.Open FreshRSS.
Checkpoint
Opening FreshRSS leads straight to a page from the bridge that asks for the username, and the person's authenticator asks them to approve. FreshRSS then shows the reading list.
Good to know
- Everyone with an identity at your domain gets a FreshRSS account the first time they sign in, named after their username, such as
john, and an existing account with that name becomes theirs. To let only one group in, limit the app to a group when you connect it, or turnhttp_auth_auto_registeroff in FreshRSS's configuration file. - FreshRSS has no roles beyond its administrator flag, so the groups published at your domain are not used.
- Mobile apps keep using each person's API password from their profile page.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-freshrss>/i/oidc/, with the trailing slash |
| Where in FreshRSS | the official Debian image for x86_64, which carries the Apache OpenID Connect module. Other installations use any web-server sign-in that sets REMOTE_USER |
| Metadata URL | the bridge's discovery document in full |
| Session | the default inactivity timeout of five minutes sends idle people back to the bridge often, so the setting above raises it to an hour. OIDC_SESSION_MAX_DURATION caps the whole session |
| User names | the claim preferred_username, the default, is the person's username, which fits FreshRSS's user name rules up to 39 characters |
FreshRSS keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. FreshRSS's OpenID Connect guide explains every variable.
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 household or organization an identifier at your domain.
- Read Groups to limit FreshRSS to one group when you connect it.
- Read FreshRSS's OpenID Connect guide for every setting FreshRSS 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.