Tenant-Level Clients
Learn how to configure and manage tenant-level OAuth2 clients for authenticating machines within a specific tenant.
Overview
Tenant-level OAuth2 clients allow your customers to authenticate backend services and automated processes that need to access your application's APIs. Each client belongs to a specific tenant, allowing you to manage client credentials and permissions separately for each customer.
Wristband currently supports only Machine-to-Machine (M2M) clients at the tenant level. These confidential clients use a client ID and secret to authenticate directly with Wristband's Token Endpoint using the client_credentials grant type. Wristband then issues an access token that represents the client rather than an individual user.
Your customers can use these access tokens to make authenticated requests to your application's APIs. Your application is responsible for validating the access tokens and enforcing authorization for its own APIs.

Figure 1: Tenant-level M2M clients authenticate customer services that access your application's APIs.
For more information about M2M clients and the client_credentials grant type, see the OAuth2 Clients documentation.
Managing Tenant-Level Clients With Wristband's Dashboard
You can create, configure, and manage tenant-level OAuth2 clients through the Wristband Dashboard. The following sections explain how to perform common client management tasks.
Creating a Client
To create a new tenant-level M2M client:
- From the Dashboard Home page, select the application containing your customer's tenant.
- Open the Tenant View for the tenant where you want to create the client.
- From the left navigation menu, select OAuth2 Clients.
- Enter a name in the M2M Client Name field.
- Click Create Client.

Figure 2: Create a tenant-level M2M client from the OAuth2 Clients page.
- Wristband displays the newly generated client credentials:
- Client ID: A unique identifier assigned to the OAuth2 client.
- Client Secret: A secret used to authenticate the client.
- Copy and securely store the client credentials. If the client is intended for a customer-managed service, share the credentials through a secure channel.
- Click Configure Client to continue configuring the new client, or Close to return to the client list.

Figure 3: View and copy the newly generated client credentials.
Client Secret VisibilityClient secrets are displayed only when they are initially generated. Wristband stores only a one-way hash of each secret, so the plaintext value cannot be retrieved later.
Make sure to securely store the client secret before closing the modal. If the secret is lost, you'll need to rotate it to generate a new one.
Editing an Existing Client
To edit an existing tenant-level OAuth2 client:
- Open the Tenant View for the tenant containing the client.
- From the left navigation menu, select OAuth2 Clients.
- Locate the client you want to configure in the clients table.
- Click the client's name to open its Edit Client page.

Figure 4: Select an existing tenant-level OAuth2 client to edit its configuration.
Configuring Client Settings
The Client Settings section allows you to configure the following properties:
- Name: The name used to identify the OAuth2 client. This value must be unique within the tenant (case insensitive).
- Description: An optional description of the client's purpose.
After making any changes, click Save to apply them.

Figure 5: Configure the client's name and description.
Configuring JWT Settings
The JWT Settings section allows you to configure the Access Token Expiration, which determines how long access tokens issued to the client remain valid.
Update the expiration value and click Save to apply your changes.

Figure 6: Configure access token expiration for a tenant-level M2M client.
For more information about default expiration values and configuration limits, see the Configuring JWT Settings documentation.
Assigning Roles to a Client
You can assign roles to a tenant-level M2M client to control which operations it is authorized to perform when authenticating using the client_credentials grant type.
To assign roles to a client:
- Locate the Roles section.
- Use the Assigned Roles dropdown to select the roles you want to assign to the client.
- Click Save to apply your changes.

Figure 7: Assign roles to a tenant-level M2M client.
Validating a Client Secret
You can validate an existing client secret through the Dashboard to confirm whether it is still valid.
To validate a client secret:
- Locate the Client Secret Settings section.
- Enter the secret you want to validate in the Client Secret field.
- Click Validate to check whether the secret is valid.

Figure 8: Validate an existing client secret.
Rotating a Client Secret
You can rotate a client secret to generate a new credential without immediately invalidating the existing primary secret. This allows your customer to update the secret used by their services without interrupting authentication.
To rotate a client secret:
- Locate the Client Secret Settings section.
- Find the Primary Client Secret field.
- Click Rotate.

Figure 9: Rotate the primary client secret.
- Confirm the rotation when prompted.
- Copy and securely store the newly generated primary client secret.
- Click Done to close the modal.

Figure 10: Copy the newly generated primary client secret.
When a client secret is rotated:
- New Primary Secret: Wristband generates a new primary client secret.
- Previous Primary Secret: The previous primary secret becomes the secondary client secret and remains valid.
- Existing Secondary Secret: If a secondary secret already exists, it is permanently invalidated and replaced by the previous primary secret.
Existing Secondary Client SecretsA client can have only one primary and one secondary secret. Rotating the primary secret when a secondary secret already exists permanently invalidates the existing secondary secret.
Ensure that no services are still using the existing secondary secret before performing another rotation.
Deleting a Secondary Client Secret
After your customer has updated all services to use the new primary secret, you can delete the secondary secret to prevent the old credential from being used.
To delete a secondary client secret:
- Locate the Client Secret Settings section.
- Find the Secondary Client Secret field.
- Click Delete.

Figure 11: Delete the secondary client secret.
- Confirm the deletion when prompted. The secondary secret is immediately invalidated and can no longer be used to authenticate the client.
Generating Access Tokens
You can generate access tokens for tenant-level M2M clients directly through the Wristband Dashboard to test authenticated API requests using tools such as cURL or Postman.
To generate an access token:
- On the Edit Client page, locate the Generate Access Tokens section.
- Enter the client's secret in the Client Secret field.
- Click New Token to generate an access token.

Figure 12: Generate an access token for testing API requests.
- Copy the generated access token and store it securely.
- Click Done to close the modal.

Figure 13: Copy the newly generated access token.
Deleting a Client
You can permanently delete a tenant-level OAuth2 client through the Wristband Dashboard.
To delete a client:
- Scroll to the bottom and locate the Delete This Client section.
- Click Delete.

Figure 14: Delete an existing tenant-level OAuth2 client.
- Confirm the deletion when prompted to permanently delete the client.
Permanent Client DeletionDeleting an OAuth2 client is permanent and cannot be undone. Once deleted, the client can no longer be used to obtain new access tokens.
Ensure that no customer applications or services are still using the client before deleting it.
Updated 5 days ago