some file

PocketID SSO with QuFabric Self-Hosted (Advanced)

PocketID is a simplified identity management solution designed for self-hosted environments, offering a lightweight and easy-to-deploy option for authentication.

Standalone Setup (Advanced)

Use PocketID as your primary identity provider instead of QuFabric's embedded IdP. This option gives you full control over authentication and user management, is recommended for experienced PocketID administrators as it also requires additional setup and ongoing maintenance.

For most deployments, the embedded IdP is the simpler choice — it's built into QuFabric, fully integrated, and requires minimal configuration to get started. For this implementation, go back up to the Management Setup (Recommended) section above.

Prerequisites

  • PocketID instance running with SSL
  • Docker and Docker Compose for QuFabric

Step 1: Create and Configure PocketID Application

  1. Navigate to PocketID console
  2. Click the Administration dropdown, then select OIDC Clients
  3. Fill in the form:
    • Name: QuFabric
    • Client Launch URL: https://<domain>
    • Callback URLs:
      • http://localhost:53000
      • https://<domain>/auth
      • https://<domain>/silent-auth
    • Logout Callback URL: https://<domain>/
    • Public Client: On
    • PKCE: On
  4. Click Save

Create OIDC client

  1. Copy Client ID for later use

Step 2: Create API Token

  1. Click Administration dropdown, then select API Keys
  2. Click Add API Key
  3. Fill in:
    • Name: QuFabric Management Token
    • Expires At: Pick a date in the future
    • Description: QuFabric Management Token
  4. Click Save

Create API token

  1. Copy API Key for later use

Step 3: Configure QuFabric

Your authority OIDC configuration will be available at:

https://<YOUR_POCKETID_HOST_AND_PORT>/.well-known/openid-configuration

Set properties in the setup.env file:

QUFABRIC_AUTH_OIDC_CONFIGURATION_ENDPOINT="https://<YOUR_POCKETID_HOST_AND_PORT>/.well-known/openid-configuration"
QUFABRIC_USE_AUTH0=false
QUFABRIC_AUTH_CLIENT_ID="<CLIENT_ID>"
QUFABRIC_AUTH_SUPPORTED_SCOPES="openid profile email groups"
QUFABRIC_AUTH_AUDIENCE="<CLIENT_ID>"
QUFABRIC_AUTH_REDIRECT_URI="/auth"
QUFABRIC_AUTH_SILENT_REDIRECT_URI="/silent-auth"
QUFABRIC_TOKEN_SOURCE="idToken"

QUFABRIC_AUTH_DEVICE_AUTH_PROVIDER="none"
QUFABRIC_AUTH_DEVICE_AUTH_CLIENT_ID="<CLIENT_ID>"
QUFABRIC_AUTH_DEVICE_AUTH_AUDIENCE="<CLIENT_ID>"
QUFABRIC_AUTH_DEVICE_AUTH_SCOPE="openid profile email groups"
QUFABRIC_AUTH_DEVICE_AUTH_USE_ID_TOKEN=true

QUFABRIC_MGMT_IDP="pocketid"
QUFABRIC_IDP_MGMT_CLIENT_ID="qufabric"
QUFABRIC_IDP_MGMT_EXTRA_MANAGEMENT_ENDPOINT="https://<YOUR_POCKETID_HOST_AND_PORT>"
QUFABRIC_IDP_MGMT_EXTRA_API_TOKEN="<API_TOKEN>"

Step 4: Continue with QuFabric Setup

You've configured all required resources in PocketID. Continue with the QuFabric Self-hosting Guide.


Troubleshooting

API token not working

  • Verify the token hasn't expired
  • Ensure the token was created by an admin user

Device authorization not available

  • PocketID has limited device auth support
  • Set QUFABRIC_AUTH_DEVICE_AUTH_PROVIDER="none" if issues persist

Was this page helpful?

© Copyright 2026. All rights reserved.