Provides 8 MCP tools for Confluence Cloud: - confluence_list_spaces, confluence_create_space - confluence_search, confluence_get_page - confluence_create_page, confluence_update_page - confluence_get_comments, confluence_add_comment Uses Confluence REST API v2 with basic auth. Registered in Claude Code and mcp-proxy. Refs: CF-935 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
902 B
JavaScript
25 lines
902 B
JavaScript
import { flattenedVerify } from '../flattened/verify.js';
|
|
import { JWSInvalid, JWSSignatureVerificationFailed } from '../../util/errors.js';
|
|
import { isObject } from '../../lib/is_object.js';
|
|
export async function generalVerify(jws, key, options) {
|
|
if (!isObject(jws)) {
|
|
throw new JWSInvalid('General JWS must be an object');
|
|
}
|
|
if (!Array.isArray(jws.signatures) || !jws.signatures.every(isObject)) {
|
|
throw new JWSInvalid('JWS Signatures missing or incorrect type');
|
|
}
|
|
for (const signature of jws.signatures) {
|
|
try {
|
|
return await flattenedVerify({
|
|
header: signature.header,
|
|
payload: jws.payload,
|
|
protected: signature.protected,
|
|
signature: signature.signature,
|
|
}, key, options);
|
|
}
|
|
catch {
|
|
}
|
|
}
|
|
throw new JWSSignatureVerificationFailed();
|
|
}
|