Vos Mock

VOS mock authentication API

Health check endpoint

get
Responses
chevron-right
200

Service is healthy

application/json
statusstringOptionalExample: ok
timestampstringOptionalExample: 2023-09-28T12:00:00Z
servicestringOptionalExample: vos-mock
get
/api/health

Initialize WebAuthn registration process

get
Query parameters
idstringRequired

User ID

Example: test
namestringOptional

User display name (defaults to id if not provided)

Example: Test
Responses
chevron-right
200

Registration initialization successful, returns attestation options

application/json
blockNumbernumberOptional

Blockchain block number when the challenge was generated

Example: 1107519
get
/api/attestation

Complete WebAuthn registration process

post
Body
userIdstringRequired

User ID

Example: test
blockNumbernumberRequired

Blockchain block number from the attestation request

Example: 1107519
Responses
chevron-right
200

Registration completed successfully

application/json
extstringOptional

Extrinsic data as hex string

Example: 0xd107040600f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b006b726569766f5f700000000000000000000000000000000000000000000000000e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a83fe61000910249960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97634100000001000000000000000000000000000000000020c8b6e0a03ed62fa517047a63e52648390c37e57364eb3e01cf704b4aab86d872a50102032620012158203e7b714c9282ac386d6a1d0398cb7d55861b9e4d7e81d9e3f91ceabca962bd56225820fc30335ea54aa544e0f792dcb712fbdbbe24e15ee4df5cae4ca6120a3106461125027b2274797065223a22776562617574686e2e637265617465222c226368616c6c656e6765223a22416450793362552d6c38514b613453666e4a4a5951342d6b446650664e4b71514b4f566d666f707a636877222c226f726967696e223a22687474703a2f2f6c6f63616c686f73743a38303835222c2263726f73734f726967696e223a66616c73657d3059301306072a8648ce3d020106082a8648ce3d030107034200043e7b714c9282ac386d6a1d0398cb7d55861b9e4d7e81d9e3f91ceabca962bd56fc30335ea54aa544e0f792dcb712fbdbbe24e15ee4df5cae4ca6120a31064611
addressstringOptional

Address associated with the registration

Example: alsdkfjalsdjkf
post
/api/register

Initialize WebAuthn authentication process

get
Query parameters
userIdstringRequired

User ID for which to generate authentication assertion

Example: test
Responses
chevron-right
200

Authentication initialization successful, returns assertion options

application/json
blockNumbernumberOptional

Blockchain block number when the challenge was generated

Example: 1107521
get
/api/assertion

Complete WebAuthn authentication process

post
Body
userIdstringRequired

User ID

Example: test
blockNumbernumberRequired

Blockchain block number from the assertion request

Example: 1107521
Responses
chevron-right
200

Authentication completed successfully

application/json
post
/api/connect

Check if a user is registered with WebAuthn

get
Query parameters
userIdstringRequired

User ID to check if registered

Example: test
Responses
chevron-right
200

Check completed successfully

application/json
okbooleanOptional

Indicates if the user is registered

Example: true
get
/api/check-user-registered

Last updated