For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication and Authorization

Overview

The Client Gateway offers flexible user authentication, allowing enterprises to decide whether to enable or bypass user-specific authentication based on their operational requirements.

For organizations choosing to implement user authentication, the Client Gateway supports two primary user scopes:

  1. Admin Scope

    • Provides full access to the configuration and management of the Client Gateway.

    • Admins can define message topics, manage storage, monitor scheduled tasks, and configure security settings.

    • They are responsible for maintaining the overall operation and performance of the CGW.

  2. Message Scope

    • Limited to sending, receiving, and processing messages through the Client Gateway.

    • Users with this scope can interact with defined message topics but do not have access to system configuration or administrative tasks.

The Client Gateway uses a Self-Sovereign Identity (SSI) key called a DID (Decentralized Identifier) to securely represent the gateway itself rather than individual users. Operational roles for the gateway are directly encoded in the DID.


User Guide

Pre-requisites

  • An environment suitable to deploy a fresh Client Gateway

  • A DID with roles assigned through Deploy Switchboard

  • A deployed Key Vault to store secrets

Setting up user authentication

To enable user authentication, the Client Gateway must be deployed with the following environment variables:

User credentials can then be stored manually in the deployed Key Vault.

Assigning a DID

Once an Admin scoped user logs into a fresh Client Gateway, there will be a form field to assign a DID to it. Once submitted, the backend service will sync all roles for the identity.

Enter private key
Checking identity

Re-assigning a new DID

In the overview section of the Client Gateway, there is a section to manage the currently assigned DID. Press the button as shown below to clear the current DID in order to assign a new one.

Update DID
Confirm reset private key

Last updated