Add Universal Second Factor (U2F)​
Verify the last added new Universal-Second-Factor (U2F) to the authenticated user.
application/json
application/grpc
application/grpc-web+proto
Request Body required
verification object
Request Body required
verification object
Request Body required
verification object
Responses
- 200
- default
A successful response.
application/json
application/grpc
application/grpc-web+proto
Schema
Example (from schema)
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-04-09T11:59:27.957Z",
"changeDate": "2024-04-09T11:59:27.957Z",
"resourceOwner": "69629023906488334"
}
}
Schema
Example (from schema)
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-04-09T11:59:27.957Z",
"changeDate": "2024-04-09T11:59:27.957Z",
"resourceOwner": "69629023906488334"
}
}
Schema
Example (from schema)
Schema
details object
{
"details": {
"sequence": "2",
"creationDate": "2024-04-09T11:59:27.957Z",
"changeDate": "2024-04-09T11:59:27.957Z",
"resourceOwner": "69629023906488334"
}
}
An unexpected error response.
application/json
application/grpc
application/grpc-web+proto
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /users/me/auth_factors/u2f/_verify
Authorization
name: OAuth2type: oauth2scopes:openid
flows: { "authorizationCode": { "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize", "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token", "scopes": { "openid": "openid" } } }
Request
Request
curl / cURL
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/users/me/auth_factors/u2f/_verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"verification": {
"publicKeyCredential": "string",
"tokenName": "fido key"
}
}'
python / requests
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/users/me/auth_factors/u2f/_verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"verification": {
"publicKeyCredential": "string",
"tokenName": "fido key"
}
}'
go / native
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/users/me/auth_factors/u2f/_verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"verification": {
"publicKeyCredential": "string",
"tokenName": "fido key"
}
}'
nodejs / axios
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/users/me/auth_factors/u2f/_verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"verification": {
"publicKeyCredential": "string",
"tokenName": "fido key"
}
}'
ruby / Net::HTTP
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/users/me/auth_factors/u2f/_verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"verification": {
"publicKeyCredential": "string",
"tokenName": "fido key"
}
}'
csharp / RestSharp
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/users/me/auth_factors/u2f/_verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"verification": {
"publicKeyCredential": "string",
"tokenName": "fido key"
}
}'
php / cURL
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/users/me/auth_factors/u2f/_verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"verification": {
"publicKeyCredential": "string",
"tokenName": "fido key"
}
}'
java / OkHttp
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/users/me/auth_factors/u2f/_verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"verification": {
"publicKeyCredential": "string",
"tokenName": "fido key"
}
}'
powershell / RestMethod
curl -L -X POST 'https://$CUSTOM-DOMAIN/auth/v1/users/me/auth_factors/u2f/_verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"verification": {
"publicKeyCredential": "string",
"tokenName": "fido key"
}
}'