Home / Developers / Conformance kit
Conformance kit
Tests you run against your own sandbox endpoints before production, from your CI or the command line.
What it checks
The conformance kit, avconformance, tests your integration the way AuthVertex exercises it: it sends valid and hostile requests to your sandbox webhook receiver and back-channel logout endpoint and reports one PASS or FAIL line per check. Run it against sandbox endpoints only. Every payload is synthetic. The webhook checks sign with your sandbox secret; the logout checks sign with a key generated for the run.
Coming — available at release. The kit is built and tested as a CI action, a container image and a binary, and will be released with the SDKs. The action reference and the image digest are announced at release.
The kit sends nothing anywhere except the check requests to the URL you give it. Results stay in your terminal, or in the job's step summary when it runs as an action; the action uploads no artifact.
Run it in CI
Coming — available at release. The action is a composite action for Linux runners with Docker. Start your application earlier in the job, or point the action at your sandbox deployment.
jobs:
conformance:
runs-on: ubuntu-24.04
steps:
# ... start your application, or use your sandbox deployment ...
- name: Webhook receiver
uses: <action reference announced at release>
with:
mode: webhook
url: ${{ vars.SANDBOX_WEBHOOK_URL }}
kid: ${{ vars.AUTHVERTEX_WEBHOOK_KID }}
webhook-secret: ${{ secrets.AUTHVERTEX_SANDBOX_WEBHOOK_SECRET }}
image: <image digest announced at release>
fail-on-error: "true"
- name: Back-channel logout endpoint
uses: <action reference announced at release>
with:
mode: bcl
url: ${{ vars.SANDBOX_LOGOUT_URL }}
audience: ${{ vars.AUTHVERTEX_CLIENT_ID }}
listen: 127.0.0.1:8765
wait: 30s
image: <image digest announced at release>Pass the webhook secret from the workflow's secret store only. It reaches the container as an environment variable and is never echoed or put on a command line.
| Input | Mode | Default | Meaning |
|---|---|---|---|
mode | both | required | webhook or bcl |
url | both | required | The sandbox endpoint under test |
kid | webhook | The signing key ID configured for your receiver | |
webhook-secret | webhook | Your receiver's sandbox signing secret | |
secret-base64 | webhook | false | The secret is base64-encoded |
audience | bcl | Your client ID (the logout token's aud) | |
issuer | bcl | the listen address | The kit's issuer URL as your application reaches it |
listen | bcl | 127.0.0.1:8765 | Where the kit serves its temporary issuer |
wait | bcl | 0s | Pause after the issuer starts |
allow-insecure-http | both | false | Allow plain http to a host other than loopback |
fail-on-error | both | true | Fail the step when a check fails. Usage and setup errors always fail |
image | both | none until release | The avconformance image, pinned by digest |
Outputs: result (passed or failed) and failures (the number of failed checks). The step summary has one row per check, with the expected and the received status.
Webhook receiver checks
| Check | Expected |
|---|---|
| A valid signed event | 2xx |
| The same delivery twice | 2xx both times: deduplicate, do not fail |
| A tampered body, a wrong secret, an unknown key ID | 4xx |
| A stale and a future timestamp, outside 5 minutes | 4xx |
A missing or malformed AuthVertex-Signature header | 4xx |
The live webhook checks sign with scheme v1 (HMAC with your sandbox secret). Run them against a receiver configured with that secret: an endpoint on scheme v1 or v1+v2. They do not send v2 signatures yet; the v2 checks of every AuthVertex SDK are pinned by the conformance vectors below.
Back-channel logout checks
The kit starts a temporary issuer with a signing key generated for the run, serving /.well-known/openid-configuration and /jwks. Point your sandbox logout verifier at that issuer for the run (wait gives you time to switch configuration or open a tunnel). The kit then sends a valid logout token and expects 200, sends the same token again and expects 200 again (a token you already processed is acknowledged without logging out again; a 4xx there passes with a warning), and expects 4xx for each of these: a nonce, missing or wrong events, a missing jti, missing sub and sid, a wrong aud or iss, a stale iat, a bad signature, alg: none and a missing logout_token. A missing Cache-Control: no-store is reported as a warning.
Without CI
The same checks run from the container image or the avconformance binary:
export AV_CONFORMANCE_WEBHOOK_SECRET='<your sandbox webhook signing secret>' # environment only, never a flag
avconformance webhook -url "$SANDBOX_WEBHOOK_URL" -kid "$AUTHVERTEX_WEBHOOK_KID"
avconformance bcl -url "$SANDBOX_LOGOUT_URL" -audience "$AUTHVERTEX_CLIENT_ID" -listen 127.0.0.1:8765 -wait 30sBoth commands refuse plain http to a host other than loopback unless -allow-insecure-http is given. Exit codes: 0 when every check passed, 1 when a check failed, 2 on a usage error. Attach the output to your go-live review.
SDK conformance vectors
Every AuthVertex SDK runs the same conformance vectors, a set of signed tokens, logout tokens, webhook signatures and DPoP proofs, each with the exact accept or reject decision and error code it must produce. Each vector carries its own clock; a vector marked for replay is verified twice with one verifier, and the second attempt must fail with replayed. They sign with test-only keys: never trust those keys anywhere.
A verifier of your own, for a language without an AuthVertex SDK, can run the same vectors. They will be published with the SDKs.