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

    Class OAuthIntrospectionVerifier

    OAuth bearer-token verifier backed by an introspection endpoint.

    Verification calls the configured authorization server, validates issuer, audience/resource binding, token type, algorithm claims, deployment scopes, required scopes, subject allowlists, and token lifetime, then caches positive AuthInfo results until either the token expiry or configured cache TTL.

    const verifier = new OAuthIntrospectionVerifier({ config });
    const authInfo = await verifier.verifyAccessToken(token);

    Implements

    • OAuthTokenVerifier
    Index
    • Verify a bearer token by introspection.

      Parameters

      • token: string

        Raw bearer token value without the Bearer prefix.

      Returns Promise<AuthInfo>

      MCP auth information for the verified token.

      OAuthError when the token is invalid or lacks required scopes.

      OAuthDependencyError when the authorization server cannot be reached or its circuit is open.