@backblaze-labs/b2-mcp
    Preparing search index...

    Function validatePreverifiedOAuthAuthInfo

    • Validate auth info supplied by trusted middleware before MCP handling.

      Parameters

      • authInfo: AuthInfo

        Preverified MCP auth info to validate.

      • config: OAuthResourceServerConfig = ...

        OAuth resource-server configuration.

      • nowSeconds: () => number = ...

        Clock source for deterministic tests.

      Returns AuthInfo

      The same auth info after validation.

      This path lets a reverse proxy or serverless platform authenticate a bearer token first while the MCP runtime still enforces this deployment's issuer, audience/resource, token type, algorithm, scopes, subject allowlist, and lifetime rules.

      OAuthError when the auth info does not satisfy this deployment.