A technical trace of one complete Ezkey flow
Technical note · October 5, 2026
Many strong-authentication texts promise cryptography. Fewer show, in a readable way, where cryptography actually enters the flow, what is signed, which key verifies it, and when the backend or the mobile client should decide to trust what they just received.
Ezkey lends itself unusually well to that kind of article because the product is deliberately backend-first. Useful state remains on the server, meaningful transitions are exposed through APIs, and the mobile client does not merely display an approval request: it participates in an explicit cryptographic chain.
What follows is not a general product tour. It is a commented technical trace of one fully validated local-stack run: enrollment issuance, device binding, signed instance branding, and a completed authentication request. The goal is not to publish raw JSON for its own sake. The goal is to make the protocol legible without flattening away the details that actually matter.
Who this is for
This text is written for readers who already have the right kind of context:
- backend developers who want to understand what they would really integrate;
- architects evaluating the readability of a proprietary MFA protocol;
- security teams looking at continuity between enrollment and authentication;
- technically curious readers who are already past the “what is Ezkey?” stage.
If you are discovering Ezkey for the first time, this is probably not the right entry point. The purpose here is different: show one real flow at technical resolution, not summarize the whole product in beginner-friendly terms.
What this trace shows, and what it does not
The scenario is intentionally plain.
An authenticated operator uses the Admin API to create an enrollment tied to one integration. A simulated device then performs bind, verify, pending, and respond against the Auth API, with the Crypto API used only as a lab oracle to rebuild canonical strings and verify signatures.
The use case is equally simple: a user approves access to an integration. No business-heavy message, no payment approval, no extra storytelling layer. The point is to let the protocol speak for itself.
Not shown here:
- the bootstrap of the administrative passwordless login;
- the
denybranch; - a
challengeRequired=truebranch; - or an integration-API-key-led issuance posture.
Why publish the secrets at all?
Normally, publishing bearer tokens, proof tokens, private keys, and signatures in full would be irresponsible.
This article is an intentional exception. The demonstrated flow was produced on a disposable local Docker stack dedicated to the article itself. That stack is already gone. Nothing published here is a still-live credential or a reusable secret. The open-book transcript is part of the value: it lets the reader inspect the protocol at full resolution instead of trusting a curated summary.
How to read the detailed trace
The detailed trace below is the validated run itself. It keeps the exact request/response blocks and cryptographic helper steps.
The key reading pattern is simple:
- identify who is acting;
- identify the canonical string being signed;
- identify which key verifies that step;
- identify what state transition or trust decision becomes valid only after that verification.
Read that way, the trace is more than a transcript. It becomes a visible argument for the kind of backend-first MFA Ezkey is trying to build.
Full validated transcript
What follows is the complete validated trace from the disposable local run. Secrets, signatures, proof tokens, and private keys are left visible intentionally: this material came from a one-purpose local Docker stack created for the article and then destroyed.
The transcript stays at protocol resolution. That is part of the point.
Administration — issuing enrollment credentials
The operator inserts a pending enrollment keyed to integrationId. The create handshake hands back identifiers and enrollment challenge. Bind consumes enrollmentProofToken; that nonce is ordinarily revealed through the administrative GET shown next, rather than echoed wholesale in create.
Illustrative captures often label enrollments using the familiar cryptographic roster personas (Alice, Bob, Carol, … with realistic surnames) so payloads resemble production roster imports without inventing lore.
POST /api/v1/enrollments (create)
{
"method": "POST",
"url": "http://localhost:9080/api/v1/enrollments",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Authorization": "Bearer ezkey_14c52717ab34444bb1cebcca5db71140",
"Content-Type": "application/json",
"Content-Length": "81"
},
"request_body": {
"integrationId": 2,
"name": "Alice Chen",
"authAttemptChallengeRequired": false
}
}
{
"status_code": 201,
"response_body": {
"enrollmentId": 2,
"enrollmentChallenge": 436767,
"expiresAt": "2026-10-12T12:19:24.965206608Z"
}
}
In create, integrationId scopes issuance to exactly one integration record; name survives into signed payloads with integration-facing title strings; authAttemptChallengeRequired pins whether MFA attempts may escalate to auxiliary short challenges downstream.
GET /api/v1/enrollments/:id
{
"method": "GET",
"url": "http://localhost:9080/api/v1/enrollments/2",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Authorization": "Bearer ezkey_14c52717ab34444bb1cebcca5db71140"
},
"request_body": null
}
{
"status_code": 200,
"response_body": {
"enrollmentId": 2,
"version": 0,
"integrationId": 2,
"enrollmentName": "Alice Chen",
"enrollmentStatus": "CREATED",
"enrollmentActive": false,
"enrollmentChallenge": 436767,
"enrollmentProofToken": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw",
"authAttemptChallengeRequired": false,
"integrationPublicKey": "o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o",
"devicePublicKey": null,
"devicePrivateKeyStorageTier": null,
"verifiedAt": null,
"expiresAt": "2026-10-12T12:19:24.965207Z",
"createdAt": "2026-10-05T12:19:24.965207Z",
"createdByAdminId": 1,
"createdByAdminUsername": "admin.docker",
"lastUsedAt": null,
"contactEmail": null,
"contactPhoneNumber": null,
"userIdentifier": null,
"deactivatedAt": null,
"deactivatedByAdminId": null,
"deactivatedByAdminUsername": null,
"revokedAt": null,
"revokedByAdminId": null,
"revokedByAdminUsername": null,
"integrationName": "Orbit Console",
"tenantId": 1,
"tenantName": "Ezkey System",
"isSystemIntegration": false,
"operational": false
}
}
Bind prerequisite: enrollmentProofToken is mandatory. Many stacks omit returning it verbatim on POST create responses; authoritative retrieval for operators feeding QR or copy channels is GET on the enrollment identifier.
Device posture — bind, verify, then fetch signed instance branding
On bind, possessing enrollmentProofToken earns the handset integration-backed metadata bundles plus enrollmentBindPayloadSignedByIntegration. Clients rebuild the deterministic canonical bind line: a single UTF‑8 row with | between enrollment proof fragments, hashing aids, ed25519, integration and tenant copy, the isSystemIntegration boolean, and the optional adminType literal when the enrollment is administrator-linked. Ed25519 must validate against integrationPublicKey from the same envelope before any field becomes authoritative.
POST /api/v1/enrollments/bind
{
"method": "POST",
"url": "http://localhost:8080/api/v1/enrollments/bind",
"request_headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Content-Length": "113"
},
"request_body": {
"enrollmentId": 2,
"enrollmentProofToken": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw"
}
}
{
"status_code": 200,
"response_body": {
"enrollmentId": 2,
"integrationPublicKey": "o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o",
"integrationKeyAlgorithm": "ed25519",
"enrollmentProofToken": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw",
"integrationName": "Orbit Console",
"integrationDescription": "Operator sign-in portal for the Europa relay team.",
"enrollmentName": "Alice Chen",
"tenantId": 1,
"tenantName": "Ezkey System",
"tenantDescription": "Ezkey MFA instance for your organization",
"isSystemIntegration": false,
"adminType": null,
"enrollmentBindPayloadSignedByIntegration": "PCEpS7EHPl15MmVIJBoxBCwiivMg-xVMrEqd_6yArFUuSkj3ty1okCkXRc0Snq6oXUrMAkjkOQvLkIyhJB9dAw"
}
}
The preceding JSON summarizes human-visible labels and PEM material. Integrity evidence is enrollmentBindPayloadSignedByIntegration. The paired Crypto excerpts below regenerate the canonical UTF‑8 substrate and certify Ed25519 against integrationPublicKey—matching how production SDKs wire their local crypto providers.
Crypto API — bind canonical line and Ed25519 verification
Helper usage: payload-helper with type enrollment-bind materializes the canonical string; verify-ed25519 pins that signature to the bind response’s integration public key and exact bytes.
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/payload-helper",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "546"
},
"request_body": {
"type": "enrollment-bind",
"proofToken": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw",
"enrollmentId": 2,
"integrationPublicKey": "o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o",
"integrationKeyAlgorithm": "ed25519",
"integrationName": "Orbit Console",
"integrationDescription": "Operator sign-in portal for the Europa relay team.",
"enrollmentName": "Alice Chen",
"tenantId": 1,
"tenantName": "Ezkey System",
"tenantDescription": "Ezkey MFA instance for your organization",
"isSystemIntegration": false,
"adminType": null
}
}
{
"status_code": 200,
"response_body": {
"type": "enrollment-bind",
"payload": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw|2|o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o|ed25519|Orbit Console|Operator sign-in portal for the Europa relay team.|Alice Chen|1|Ezkey System|Ezkey MFA instance for your organization|false|",
"encoding": "UTF-8 + NFC where applicable"
}
}
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/verify-ed25519",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "434"
},
"request_body": {
"data": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw|2|o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o|ed25519|Orbit Console|Operator sign-in portal for the Europa relay team.|Alice Chen|1|Ezkey System|Ezkey MFA instance for your organization|false|",
"signature": "PCEpS7EHPl15MmVIJBoxBCwiivMg-xVMrEqd_6yArFUuSkj3ty1okCkXRc0Snq6oXUrMAkjkOQvLkIyhJB9dAw",
"publicKey": "o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o"
}
}
{
"status_code": 200,
"response_body": {
"valid": true,
"message": "Signature is valid",
"algorithm": "ED25519"
}
}
Device keys and verify-device canonical line (enrollment-verify-device)
The handset provisions an EC P‑256 keypair (here via Crypto API GET /keypair; shipping apps use keystore / secure enclave surfaces). payload-helper type enrollment-verify-device concatenates enrollmentProofToken|enrollmentId|challengeResponse|devicePublicKey as one canonical UTF‑8 line. POST /crypto/sign produces ECDSA over that exact string; the signature populates enrollmentProofTokenSigned on POST /api/v1/enrollments/verify.
{
"method": "GET",
"url": "http://localhost:9090/api/v1/crypto/keypair",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive"
},
"request_body": null
}
{
"status_code": 200,
"response_body": {
"privateKey": "MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCCfICmLZC9zocqwPE131NZ0dtwptE1xMOYLGeIHlahLgQ==",
"publicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEqyRodVYHgW5WgeXGhFRivOdQhLMEnIevjm9Q7HIi5+hD3EZJTUpUDr6ZMAhS/PGWivFOpuhxzaSJQhRH0gAzA=="
}
}
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/payload-helper",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "315"
},
"request_body": {
"type": "enrollment-verify-device",
"proofToken": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw",
"enrollmentId": 2,
"challengeResponse": 436767,
"devicePublicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEqyRodVYHgW5WgeXGhFRivOdQhLMEnIevjm9Q7HIi5+hD3EZJTUpUDr6ZMAhS/PGWivFOpuhxzaSJQhRH0gAzA=="
}
}
{
"status_code": 200,
"response_body": {
"type": "enrollment-verify-device",
"payload": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw|2|436767|MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEqyRodVYHgW5WgeXGhFRivOdQhLMEnIevjm9Q7HIi5+hD3EZJTUpUDr6ZMAhS/PGWivFOpuhxzaSJQhRH0gAzA==",
"encoding": "UTF-8 + NFC where applicable"
}
}
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/sign",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "322"
},
"request_body": {
"data": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw|2|436767|MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEqyRodVYHgW5WgeXGhFRivOdQhLMEnIevjm9Q7HIi5+hD3EZJTUpUDr6ZMAhS/PGWivFOpuhxzaSJQhRH0gAzA==",
"privateKey": "MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCCfICmLZC9zocqwPE131NZ0dtwptE1xMOYLGeIHlahLgQ=="
}
}
{
"status_code": 200,
"response_body": {
"signature": "MEUCIQDcJKYpIHKWNSw6Flp680DM6Qb988aENBSaLOn8D4cO9gIgehoHaKib88FLmhYrDz3kWh0f15piMR4DAR9W99EFVvQ=",
"originalData": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw|2|436767|MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEqyRodVYHgW5WgeXGhFRivOdQhLMEnIevjm9Q7HIi5+hD3EZJTUpUDr6ZMAhS/PGWivFOpuhxzaSJQhRH0gAzA==",
"algorithm": "EC_P256"
}
}
POST /api/v1/enrollments/verify
Auth API validates ECDSA device evidence, activates enrollment consistent with tenancy policy, then returns enrollmentVerifyPayloadSignedByIntegration attesting integration approval over the canonical verify-result line.
{
"method": "POST",
"url": "http://localhost:8080/api/v1/enrollments/verify",
"request_headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Content-Length": "368"
},
"request_body": {
"enrollmentId": 2,
"challengeResponse": 436767,
"devicePublicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEqyRodVYHgW5WgeXGhFRivOdQhLMEnIevjm9Q7HIi5+hD3EZJTUpUDr6ZMAhS/PGWivFOpuhxzaSJQhRH0gAzA==",
"enrollmentProofTokenSigned": "MEUCIQDcJKYpIHKWNSw6Flp680DM6Qb988aENBSaLOn8D4cO9gIgehoHaKib88FLmhYrDz3kWh0f15piMR4DAR9W99EFVvQ=",
"devicePrivateKeyStorageTier": "STANDARD"
}
}
{
"status_code": 200,
"response_body": {
"active": true,
"enrollmentVerifyMessage": "Enrollment verified successfully",
"enrollmentVerifyPayloadSignedByIntegration": "EOmqg9APSLR7o9YxL3WWZzwAY400AkP94gSCjLeirpyFEWx67G_JHrQhRHsgPoUPNLvjxIsvbNT5P6vO8UdODA"
}
}
Crypto API — verify-result integration signature
Rebuild the canonical verify-result line with the same tooling pattern as bind, then certify Ed25519 with the unchanged integration signing key surfaced earlier.
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/payload-helper",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "208"
},
"request_body": {
"type": "enrollment-verify-result",
"proofToken": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw",
"enrollmentId": 2,
"result": "VERIFIED",
"message": "Enrollment verified successfully"
}
}
{
"status_code": 200,
"response_body": {
"type": "enrollment-verify-result",
"payload": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw|2|VERIFIED|Enrollment verified successfully",
"encoding": "UTF-8 + NFC where applicable"
}
}
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/verify-ed25519",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "285"
},
"request_body": {
"data": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw|2|VERIFIED|Enrollment verified successfully",
"signature": "EOmqg9APSLR7o9YxL3WWZzwAY400AkP94gSCjLeirpyFEWx67G_JHrQhRHsgPoUPNLvjxIsvbNT5P6vO8UdODA",
"publicKey": "o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o"
}
}
{
"status_code": 200,
"response_body": {
"valid": true,
"message": "Signature is valid",
"algorithm": "ED25519"
}
}
POST /api/v1/enrollments/instance-info
Once enrollment is active, the official mobile path does not trust unsigned public branding. It calls enrolled instance-info with the same enrollmentProofToken used during bind/verify, receives deployment branding plus instanceInfoPayloadSignedByIntegration, and must verify that Ed25519 signature before applying authApiPublicBaseUrl, instanceName, instanceDescription, or aboutUrl.
{
"method": "POST",
"url": "http://localhost:8080/api/v1/enrollments/instance-info",
"request_headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Content-Length": "94"
},
"request_body": {
"enrollmentProofToken": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw"
}
}
{
"status_code": 200,
"response_body": {
"enrollmentId": 2,
"authApiPublicBaseUrl": "https://goateed-katalina-monsoonal.ngrok-free.dev",
"instanceName": "Ezkey System",
"instanceDescription": "Ezkey MFA instance for your organization",
"aboutUrl": null,
"instanceInfoPayloadSignedByIntegration": "B2NEtVQrO4ZpCnNRjlv8zB0thN2v0O5G-pHSw9rNIiO6Dsv3OW_YGvh9Pe6tnt4Y_M8RH1K0eIn4KvWv7LeNCw"
}
}
Crypto API — enrolled instance-info integration signature
The lab oracle reconstructs the canonical line proofToken|enrollmentId|INSTANCE_INFO|authApiPublicBaseUrl|instanceName|instanceDescription|aboutUrl, then verifies the returned Ed25519 signature with the same integration key used for bind and verify-result.
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/payload-helper",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "333"
},
"request_body": {
"type": "enrollment-instance-info",
"proofToken": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw",
"enrollmentId": 2,
"authApiPublicBaseUrl": "https://goateed-katalina-monsoonal.ngrok-free.dev",
"instanceName": "Ezkey System",
"instanceDescription": "Ezkey MFA instance for your organization",
"aboutUrl": null
}
}
{
"status_code": 200,
"response_body": {
"type": "enrollment-instance-info",
"payload": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw|2|INSTANCE_INFO|https://goateed-katalina-monsoonal.ngrok-free.dev|Ezkey System|Ezkey MFA instance for your organization|",
"encoding": "UTF-8 + NFC where applicable"
}
}
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/verify-ed25519",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "362"
},
"request_body": {
"data": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw|2|INSTANCE_INFO|https://goateed-katalina-monsoonal.ngrok-free.dev|Ezkey System|Ezkey MFA instance for your organization|",
"signature": "B2NEtVQrO4ZpCnNRjlv8zB0thN2v0O5G-pHSw9rNIiO6Dsv3OW_YGvh9Pe6tnt4Y_M8RH1K0eIn4KvWv7LeNCw",
"publicKey": "o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o"
}
}
{
"status_code": 200,
"response_body": {
"valid": true,
"message": "Signature is valid",
"algorithm": "ED25519"
}
}
Administration — opening an MFA attempt
Authentication attempt TTL
After POST creating an MFA attempt the stack enforces timeoutSeconds with an absolute expiresAt. respond on the handset must conclude inside that horizon—TTL metadata for this capture fills the block below.
{
"timeoutSeconds": 120,
"expiresAt": "2026-10-05T12:21:25.576731583Z"
}
Opening an MFA authentication attempt for a verified enrollment yields attempt identifiers plus metadata echoed in transcripts. In this template the example remains intentionally plain: the handset is asked to approve access to the integration, not to authorize a richer business transaction. If contextTitle or contextMessage are present, they are still covered by the signed pending payload, but they should read as simple sign-in or access copy.
{
"method": "POST",
"url": "http://localhost:9080/api/v1/auth-attempts",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Authorization": "Bearer ezkey_14c52717ab34444bb1cebcca5db71140",
"Content-Type": "application/json",
"Content-Length": "48"
},
"request_body": {
"enrollmentId": 2,
"challengeRequested": false
}
}
{
"status_code": 201,
"response_body": {
"authAttemptId": 2,
"authAttemptChallenge": null,
"timeoutSeconds": 120,
"expiresAt": "2026-10-05T12:21:25.576731583Z",
"contextTitle": null,
"contextMessage": null
}
}
Device posture — pending then respond
MFA choreography reuses the disciplined pattern above: ECDSA-signed proof token, pending retrieval with authAttemptProofTokenSignedByIntegration requiring Ed25519 confirmation, ECDSA-signed respond, then authAttemptProofTokenResultSignedByIntegration validating the eventual integration stance over the respond-result canonical substrate.
Read-once pending and chaining respond
While an MFA attempt sits PENDING, callers may probe with fresh ephemeral deviceProofToken payloads until Ezkey validates one complete poll. That successful poll flips the attempt from PENDING to READ and returns the one proof token the handset needs for the next step. From that moment, the mobile side must verify the integration Ed25519 signature over the reconstructed pending canonical line before trusting the displayed title, message, or challenge posture. Only then can it sign the follow-up respond payload with the exact authAttemptProofToken it just received.
Cryptography snippets below occupy the same structural role handset firmware plays in deployment.
Crypto API — device proof token and ECDSA
Issue a fresh ephemeral deviceProofToken, ECDSA-signed with enrollment’s device private key—the signature rides pending as proof-of-handset.
{
"method": "GET",
"url": "http://localhost:9090/api/v1/crypto/prooftoken",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive"
},
"request_body": null
}
{
"status_code": 200,
"response_body": {
"proofToken": "ie7WkkJwjKvbsy36__yconTf69JGw42BU0tzufznfpk.OGdDNT5oJNwFuRocXVpW2A"
}
}
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/sign",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "188"
},
"request_body": {
"data": "ie7WkkJwjKvbsy36__yconTf69JGw42BU0tzufznfpk.OGdDNT5oJNwFuRocXVpW2A",
"privateKey": "MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCCfICmLZC9zocqwPE131NZ0dtwptE1xMOYLGeIHlahLgQ=="
}
}
{
"status_code": 200,
"response_body": {
"signature": "MEUCIQCx065Msmz+0ks2kKZEAFsxkA3GZvr7ZhPBmgihmRlm8AIgCoFepRI6G7C9h6NncH/tZMRwc9pdpiqIwSkEG9imjRU=",
"originalData": "ie7WkkJwjKvbsy36__yconTf69JGw42BU0tzufznfpk.OGdDNT5oJNwFuRocXVpW2A",
"algorithm": "EC_P256"
}
}
POST /api/v1/auth-attempts/pending
Determine whether MFA state exists for handset plus enrollment linkage. 200 embeds authAttemptProofTokenSignedByIntegration; authenticate Ed25519 on the reconstructed pending canonical line exactly like bind before treating the MFA payload fields as authoritative. If the integration supplied a simple access title or short message, those strings are signed too; they are secondary to the protocol, but not outside it.
{
"method": "POST",
"url": "http://localhost:8080/api/v1/auth-attempts/pending",
"request_headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Content-Length": "329"
},
"request_body": {
"enrollmentId": 2,
"enrollmentProofToken": "zcVVTLjqNlftuLroSLK3UtM-YaUMf5qyc3G5GZkI8zA.dPiUqyB5iQGh6y9x1rgcXw",
"deviceProofToken": "ie7WkkJwjKvbsy36__yconTf69JGw42BU0tzufznfpk.OGdDNT5oJNwFuRocXVpW2A",
"deviceProofTokenSigned": "MEUCIQCx065Msmz+0ks2kKZEAFsxkA3GZvr7ZhPBmgihmRlm8AIgCoFepRI6G7C9h6NncH/tZMRwc9pdpiqIwSkEG9imjRU="
}
}
{
"status_code": 200,
"response_body": {
"authAttemptId": 2,
"authAttemptProofToken": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA",
"authAttemptProofTokenSignedByIntegration": "wcA8__dnGLsL_Rrjoxq5vg8SMPDVeX58gIS58_bAEgLFUzl3RgaPIYa3OFyI0DU9-dl_fFsYBwkCajYaqYtCCA",
"authAttemptChallengeRequired": false,
"contextTitle": null,
"contextMessage": null
}
}
Crypto API — pending integration signature verification
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/payload-helper",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "173"
},
"request_body": {
"type": "pending",
"proofToken": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA",
"challengeRequired": false,
"contextTitle": "",
"contextMessage": ""
}
}
{
"status_code": 200,
"response_body": {
"type": "pending",
"payload": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA|false||",
"encoding": "UTF-8 + NFC where applicable"
}
}
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/verify-ed25519",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "249"
},
"request_body": {
"data": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA|false||",
"signature": "wcA8__dnGLsL_Rrjoxq5vg8SMPDVeX58gIS58_bAEgLFUzl3RgaPIYa3OFyI0DU9-dl_fFsYBwkCajYaqYtCCA",
"publicKey": "o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o"
}
}
{
"status_code": 200,
"response_body": {
"valid": true,
"message": "Signature is valid",
"algorithm": "ED25519"
}
}
Respond canonical line (authAttemptProofToken|true|false)
The accept/deny decision reduces to an ECDSA commitment over authAttemptProofToken|accepted. On the acceptance branch, that means the handset signs authAttemptProofToken|true and the server recomputes the exact same two-segment line before recording the result.
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/sign",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "193"
},
"request_body": {
"data": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA|true",
"privateKey": "MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCCfICmLZC9zocqwPE131NZ0dtwptE1xMOYLGeIHlahLgQ=="
}
}
{
"status_code": 200,
"response_body": {
"signature": "MEUCIQD7KYOGpwtP6tH/yakKXA8tazMiHkDbHRPPt/3M8rxThAIgGgdx9kFNlPMJUlpC8aiZvDcvA7WQrSCIT7mRdFfFMmM=",
"originalData": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA|true",
"algorithm": "EC_P256"
}
}
POST /api/v1/auth-attempts/respond
{
"method": "POST",
"url": "http://localhost:8080/api/v1/auth-attempts/respond",
"request_headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Content-Length": "223"
},
"request_body": {
"authAttemptId": 2,
"authAttemptAccepted": true,
"authAttemptProofTokenSignedByDevice": "MEUCIQD7KYOGpwtP6tH/yakKXA8tazMiHkDbHRPPt/3M8rxThAIgGgdx9kFNlPMJUlpC8aiZvDcvA7WQrSCIT7mRdFfFMmM=",
"authAttemptChallengeResponse": 0
}
}
{
"status_code": 200,
"response_body": {
"authAttemptId": 2,
"authAttemptResult": "APPROVED",
"authAttemptMessage": "Auth attempt completed",
"authAttemptProofTokenResultSignedByIntegration": "f0dwir7hNNs20Reso2sXNqftLB0CmpiODNPzkfe2E2msEdk7Aa8ugGBV0VEG5rwipJfzefazQv6_jTCqOVTzAw"
}
}
Crypto API — respond-result integration signature
The JSON embeds authAttemptProofTokenResultSignedByIntegration. Reproduce the respond-result canonical string using payload-helper type respond-result, then certify Ed25519—closing the MFA loop exactly as integrations signed earlier segments.
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/payload-helper",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "189"
},
"request_body": {
"type": "respond-result",
"proofToken": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA",
"authAttemptId": 2,
"result": "APPROVED",
"message": "Auth attempt completed"
}
}
{
"status_code": 200,
"response_body": {
"type": "respond-result",
"payload": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA|2|APPROVED|Auth attempt completed",
"encoding": "UTF-8 + NFC where applicable"
}
}
{
"method": "POST",
"url": "http://localhost:9090/api/v1/crypto/verify-ed25519",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Content-Type": "application/json",
"Content-Length": "275"
},
"request_body": {
"data": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA|2|APPROVED|Auth attempt completed",
"signature": "f0dwir7hNNs20Reso2sXNqftLB0CmpiODNPzkfe2E2msEdk7Aa8ugGBV0VEG5rwipJfzefazQv6_jTCqOVTzAw",
"publicKey": "o_g1NmS1Gm95e2Ftiq9e2UG31cZtE-sJYjn486I4g_o"
}
}
{
"status_code": 200,
"response_body": {
"valid": true,
"message": "Signature is valid",
"algorithm": "ED25519"
}
}
Administration — synchronous wait
When tooling chains admin /wait, transcripts include the blocking poll that observes Auth API attempt convergence—useful symmetry for backends that hinge UX on deterministic completion cues.
{
"method": "GET",
"url": "http://localhost:9080/api/v1/auth-attempts/2/wait",
"request_headers": {
"User-Agent": "python-requests/2.32.5",
"Accept-Encoding": "gzip, deflate",
"Accept": "application/json",
"Connection": "keep-alive",
"Authorization": "Bearer ezkey_14c52717ab34444bb1cebcca5db71140"
},
"request_body": null
}
{
"status_code": 200,
"response_body": {
"authAttempt": {
"authAttemptId": 2,
"enrollmentId": 2,
"authAttemptStatus": "ACCEPTED",
"authAttemptChallenge": null,
"authAttemptProofToken": "k0mbnhwIeXbrRyGvaLX_itHjUU9SmxTj-u4NxnDEe2M.-6miqe4VXXVkFibCksc3tA",
"createdAt": "2026-10-05T12:19:25.576731Z",
"expiresAt": "2026-10-05T12:21:25.576732Z",
"contextTitle": null,
"contextMessage": null,
"integrationId": null,
"integrationName": null,
"enrollmentName": null,
"tenantId": null,
"tenantName": null
},
"status": "ACCEPTED",
"completed": true,
"timeoutReached": false,
"waitDuration": 0,
"completedAt": "2026-10-05T12:19:26.059614264Z"
}
}
Closing
Ezkey concentrates trust in explicit canonical UTF‑8 scaffolding: integration Ed25519 for integration-issued payloads, ECDSA handset math for proofs and MFA decisions, and a read-once pending handshake that forces the device to bind its final decision to the exact attempt it claimed. In an access-login walkthrough like this one, any sign-in copy displayed to the user is inside the same signed envelope as the proof token and challenge posture. The Crypto API excerpts prove the strings mechanically; production mobiles implement the identical math locally without round-tripping through lab services.