Create a DID registration challenge for the current session.
curl --request POST \ --url https://auth.example.com/api/auth/dids/register/challenge \ --header 'Content-Type: application/json' \ --cookie authrim_session=<authrim_session> \ --data '{ "did": "did:web:example.com" }'Creates a DID proof challenge for an authenticated browser session so the DID can be linked to the current user.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Example
{ "did": "did:web:example.com"}Responses
Section titled “ Responses ”Successful JSON response.
object
object
object
Example
{ "challenge_id": "challenge_123", "challenge": "Sign this challenge", "nonce": "nonce_123", "allowed_verification_methods": [ { "id": "did:web:example.com#key-1", "type": "JsonWebKey2020", "controller": "did:web:example.com", "publicKeyJwk": { "kty": "OKP", "crv": "Ed25519", "x": "..." } } ], "expires_in": 300}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}