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

Token Management

The MCP Server issues JWT tokens on login, then validates each request by verifying the signature, checking token expiration, and confirming the user against the shared MariaDB database.

Token management is a critical part of the system's security, handled primarily by the RAG API.

Token Generation

The process involves two main steps:

Step 1: User Registration

Step 2: User Login & Token Generation

Token Usage

Once a client has a JWT, it includes it in the Authorization header of every request to the MCP Server. The server then validates the token before processing the request.

Key Security Measures

  • Signature Verification: Prevents token tampering.

  • Expiration Check: Tokens have a limited lifetime (e.g., 30 minutes).

  • Database Validation: Ensures the user associated with the token still exists and is active.

  • Issuer/Audience Validation: Prevents a token from one system from being used on another.

  • Not-Before Check: Prevents a token from being used before it is valid

This page is: Copyright © 2026 MariaDB. All rights reserved.

Last updated

Was this helpful?