ZITADEL Docs
APIsCore ResourcesV2User

VerifyU2FRegistration

Verify a u2f token for a user

Verify the u2f token registration with the public key credential..

POST
/v2/users/{user_id}/u2f/{u2f_id}

Path Parameters

user_id*string
u2f_id*string

Request Body

application/json

publicKeyCredential*

Struct represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, Struct might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language.

The JSON representation for Struct is JSON object.

tokenName*string
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/v2/users/string/u2f/string" \  -H "Content-Type: application/json" \  -d '{    "publicKeyCredential": {      "property1": {},      "property2": {}    },    "tokenName": "string"  }'
{
  "details": {
    "sequence": 0,
    "changeDate": "1s",
    "resourceOwner": "string",
    "creationDate": "1s"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?