Authentication

Optionally protect your instance with OAuth2 login. Secrets can require authentication to view, and secret creation can be restricted to signed-in users.

Authentication is entirely optional. Pass It Around works without any authentication configured. When OAuth2 is not set up, the authentication features are hidden and the app behaves as usual.

How It Works

When your administrator has configured an OAuth2 provider (such as Authentik, Keycloak, Authelia, or any OpenID Connect provider), a "Sign in" link appears at the top of the page. Once signed in, you get access to additional features:

Signing In

Click the "Sign in" link at the top-right corner of the page. You will be redirected to your organization's login page. After signing in, you are redirected back to the app.

Auth bar showing Sign in link
The "Sign in" link appears at the top-right when authentication is enabled.

Creating an Authenticated Secret

When authentication is enabled, a "Require authentication to view" checkbox appears in the secret creation form.

  1. Sign in to the app (if you are not already).
  2. Fill in your secret as usual (text or file, password, views, lifetime).
  3. Check "Require authentication to view". This means anyone opening the link will need to be signed in before they can retrieve the secret.
  4. Click "Create Secret" and share the link.
Create form with require auth checkbox
The "Require authentication to view" checkbox in the creation form.

Viewing an Authenticated Secret

When someone opens a link to an authenticated secret and they are not signed in, they see a prompt to sign in first. After signing in, they are redirected back to the secret and can proceed normally (entering a password if required, then retrieving).

Authentication required prompt
The prompt shown when an unauthenticated user tries to view a protected secret.
No user information is stored with secrets. Authentication is purely an access gate. The server checks that you have a valid session, but does not record who created or viewed a secret. The secret itself remains encrypted the same way as any other secret.

Gated Creation

Administrators can configure the instance so that only signed-in users can create secrets. When this is enabled, the creation form is hidden and you must sign in first. Unauthenticated users can still view secrets that do not require authentication.

Sign in required to create secrets
When creation requires authentication, unauthenticated users see a sign-in prompt instead of the creation form.

Privacy

Authentication in Pass It Around is designed to be minimal:

Setup

Authentication requires an OpenID Connect provider. See the OAuth2 configuration section in the installation guide for the environment variables needed to enable it.

Open the App