Authenticator Requests & Responses
This section describes how authenticators receive and respond to requests from RPs. This also reflects what is implemented in the . The authenticator receives a request from an RP in the following format.Request Schema
The schema for the request is defined in theworld-id-primitives crate as ProofRequest.
Request Examples
- Single Credential
- Multiple Credentials
- More Complex Constraints
Constraint Evaluation
When using theany constraint, the order of credential types in the array determines priority order. The authenticator will attempt to provide the first available credential type in the list. If that credential is not available, it will fall back to the next type in the array, and so on.
Priority ordering only applies to
any constraints. For all constraints,
all specified credential types must be provided regardless of order.- If the user has an PoH credential, the authenticator will provide it.
- If the user does not have an PoH credential but has a passport credential, the authenticator will provide the passport instead.
- The PoH credential type has priority over passport.
Response Schema
The schema for the response is defined in theworld-id-primitives crate as ProofResponse.
Response Examples
- Success (OK)
- Failure (Constraints Not Satisfied)
- Success with Session (OK)