TheBensage

Single sign-on

One account for every app

Every site here signs in through my own authentik instance over OpenID Connect. Sign in once and you're signed in everywhere; sign out once and you're signed out everywhere. Getting access is one page, and I approve it app by app.

Sign in once, use every app

  • Single sign-on

    When you open a site signed out, it quietly asks authentik whether you're already signed in (prompt=none). If you are, you're in without seeing a form; if not, you stay on the page as a visitor, with no error. Crawlers and uptime checks skip the check.

  • Single sign-out

    Sign out anywhere and authentik ends its session, then loads each app's front-channel logout page in a hidden frame, so every site drops its own session too.

  • Passkeys and two-factor

    Sign in with a password or a passkey offered straight away by the browser, and add an authenticator app for two-factor. The sign-in pages carry the same brand as the sites.

How getting access works

One request-access page serves every app. Each app links to it with its own box already ticked, and the account works straight away, but it unlocks nothing until I approve an app.

Try it

Request access and you'll get the real emails. I approve requests by hand, so it may take a little while.

  1. Step 1 of 5You

    Create an account

    Name, email, username and password. A second account with the same email or username is refused on the form. Already signed in? This step is skipped.

  2. Step 2 of 5You

    Pick the apps

    Tick what you'd like, with an optional reason. authentik keeps the picks on your account and sends you back to the app you came from, signed in.

  3. Step 3 of 5authentik

    Emails go out

    You get a “We've got your request” email, and I get a “New access request” email at admin@ with your picks, your reason and a button to review it in authentik.

  4. Step 4 of 5Me

    Approve, app by app

    Approving is adding you to that app's group. No form to fill in and nothing to remember: the group is the permission.

  5. Step 5 of 5authentik

    “You're in”

    A rule watches group changes and emails you once per approved app, with a button to open it. The access applies at your next sign-in to that app.

Who can do what

Anyone with an account can sign in to every public app. What you can do there comes from the groups in your sign-in token, which each app checks itself.

AppGroupUnlocks
Portfolioportfolio-membersThe colour palette on this site
User Directoryuser-directory-editorsAdding, editing and deleting people
APIapi-editorsSending real requests from the API docs
Grafanagrafana-viewers, grafana-adminsDashboards and logs (I add these by hand; they can't be requested)

The details that matter

  • Everything as code

    Groups, apps, sign-in pages, emails and the approval rule live in one versioned blueprint that authentik re-applies on start and hourly, so a change in the UI can't drift.

  • Least privilege

    People who sign up are external users: they reach the apps they're allowed into and never authentik's own admin pages. Writes to the API need an editor group, checked by the API itself.

  • Guest invites

    For a short-term guest I create a single-use invite link with an expiry. They pick their own password, can edit the User Directory and nothing else, and I deactivate them afterwards.

  • Privacy built in

    The sign-up form says what's stored and links the privacy notice. Accounts are deleted when a request is refused or access ends.