Verify the identity of given provider Deprecated
Verifies the identity of given provider based on its identity token.
This operation has public access.
Example cURL requests
Check provider IP
curl -H "X-Auth-Token: $TOKEN" -H "Content-type: application/json" \
-d '{"providerId": "f3a3fbcc6e85e1b7829e4901a8e1809", "token": "JKAxNWxvY2F0aW9uIG9uZXp..."}' \
-X POST https://onezone.example.com/api/v3/onezone/provider/public/verify_provider_identity
Request body
Identity parameters
| Property | Type & Description |
|---|---|
providerId string Provider Id. | |
token string Provider identity token. | |
Request Examples
onezone-rest-cli verifyProviderIdentity providerId=="dqs1ew2afn9q28rnweu8fb23r9jqwtfg" token=="JKAxNWxvY2F0aW9uIG9uZXp..." Responses
The identity token is valid for this provider.
Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}