Cryptography
Décode clientDataJSON, authenticatorData, flags, rpIdHash et signCount ; vérifie ES256, RS256 ou Ed25519 si une clé publique est fournie.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/webauthn-passkey-assertion-decoder-challenge-debugger' \
-H 'Content-Type: application/json' \
-d '{"clientDataJson":"{\"type\":\"webauthn.get\",\"challenge\":\"Y2hhbGxlbmdl\",\"origin\":\"https://example.com\"}","clientDataEncoding":"json","authenticatorData":"a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce19478500000002","signature":"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","binaryEncoding":"hex","expectedChallenge":"Y2hhbGxlbmdl","expectedOrigin":"","rpId":"example.com","previousSignCount":1,"cosePublicKey":"","coseEncoding":"base64url"}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/webauthn-passkey-assertion-decoder-challenge-debugger| Nom | Type | Requis | Description |
|---|---|---|---|
| clientDataJson | textarea | Oui | — |
| clientDataEncoding | select | Non | — |
| authenticatorData | textarea | Oui | — |
| signature | textarea | Oui | — |
| binaryEncoding | select | Non | — |
| expectedChallenge | text | Non | — |
| expectedOrigin | text | Non | — |
| rpId | text | Non | — |
| previousSignCount | number | Non | — |
| cosePublicKey | textarea | Non | — |
| coseEncoding | select | Non | — |
Résultat JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-webauthn-passkey-assertion-decoder-challenge-debugger": {
"name": "webauthn-passkey-assertion-decoder-challenge-debugger",
"description": "Décode clientDataJSON, authenticatorData, flags, rpIdHash et signCount ; vérifie ES256, RS256 ou Ed25519 si une clé publique est fournie.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=webauthn-passkey-assertion-decoder-challenge-debugger",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "webauthn-passkey-assertion-decoder-challenge-debugger",
"arguments": {
"clientDataJson": "{\"type\":\"webauthn.get\",\"challenge\":\"Y2hhbGxlbmdl\",\"origin\":\"https://example.com\"}",
"clientDataEncoding": "json",
"authenticatorData": "a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce19478500000002",
"signature": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"binaryEncoding": "hex",
"expectedChallenge": "Y2hhbGxlbmdl",
"expectedOrigin": "",
"rpId": "example.com",
"previousSignCount": 1,
"cosePublicKey": "",
"coseEncoding": "base64url"
}
}
}Des questions ou un problème ? Contactez [email protected]