Skip to content

triauth for FreshRSSOIDC

Let your household or team open FreshRSS with one approval on their own device, and no FreshRSS passwords.

  • News and reading
  • Open source
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

  1. 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 of rss.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Add the settings below to the environment of the FreshRSS container and restart it. Replace example.com with 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.

    ini
    OIDC_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-Host
  3. In FreshRSS, make sure the administrator's user name equals their username at your domain, such as admin, then choose HTTP under Administration › Authentication.

  4. 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 turn http_auth_auto_register off 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

SettingValue
Redirect addresshttps://<your-freshrss>/i/oidc/, with the trailing slash
Where in FreshRSSthe 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 URLthe bridge's discovery document in full
Sessionthe 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 namesthe 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

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.