Skip to content

triauth for Stirling PDFOIDC

Let your team open Stirling PDF with one approval on their own device, and no Stirling PDF passwords.

  • Documents
  • Open source
Sign-in through
OpenID Connect bridge
Available in
All plans, on the build with login
Set up in
settings.yml

About Stirling PDF

Stirling PDF is a web app for everyday PDF work. People merge, split, convert, compress, sign, and redact files from their browser. A company runs it on its own server, so documents never leave the building.

Connect Stirling PDF to triauth

Stirling PDF signs people in through the triauth OpenID Connect bridge. Once connected, its sign-in page shows a button for the new sign-in option. People on your team click it, type their username, and approve on their own device. Nobody keeps a Stirling PDF password, and when someone leaves, removing their identity records at your domain ends their access to Stirling PDF as well.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Stirling PDF's redirect address, https://pdf.example.com/login/oauth2/code/triauth with your own Stirling PDF address in place of pdf.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. On your server, add the settings below to Stirling PDF's settings.yml and restart it. Replace example.com with your domain and the two placeholders with the client ID and the client secret from the bridge.

    yaml
    security:
      enableLogin: true
      oauth2:
        enabled: true
        provider: triauth
        issuer: https://oidc.triauth.org/example.com
        clientId: <client ID from the bridge>
        clientSecret: <client secret from the bridge>
        scopes: openid, profile, email
        useAsUsername: email
        autoCreateUser: true
  3. Open Stirling PDF's sign-in page and click the new sign-in button.

Checkpoint

Stirling PDF's sign-in page shows a new sign-in button. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.

Good to know

  • With the settings above, everyone with an identity at your domain gets an account at their first sign-in, and each account takes a seat on your plan. To let only one team in, limit the app to a group when you connect it. To hand out seats yourself, set blockRegistration: true and add people under Settings › Workspace › Users first.
  • Roles are set in Stirling PDF under Settings › Workspace › Users. The groups published at your domain are not used.
  • Sign-in needs the build of Stirling PDF that includes login, such as the latest or latest-fat image.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-stirling>/login/oauth2/code/<provider>, where the provider is the provider value in the settings, triauth above
Where in Stirling PDFsettings.yml, section security.oauth2, or the matching environment variables such as SECURITY_OAUTH2_CLIENTID
Issuerhttps://oidc.triauth.org/<your domain>, from which Stirling PDF reads the discovery document
Provider nameany lowercase name except keycloak, which Stirling PDF treats specially
UsernameuseAsUsername: email, so that accounts are keyed by the identifier. preferred_username gives short names such as john instead, unique within your domain only

Stirling PDF keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Stirling PDF's single sign-on guide explains every setting, including how to turn off password login.

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.