/api/customers/K0002/devices/123456789abc/bypass-authentication
as application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/devices/123456789abc/bypass-authentication
as application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 204 No Content
/api/customers/K0002/devices/123456789abc/bypass-authentication
as application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 400 Bad Request
with following body:
{
"detail": "Device does not support 2 factor authentication: type01",
"title": "Device not supported",
"described_by": "http://api.nfon.net/probs/device-authentication-invalid"
}
/api/customers/K0404/00123/bypass-authentication
as application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 404 Not Found {
"described_by": "http://api.nfon.net/probs/customer-not-found",
"title": "Customer not found",
"detail": "Customer with identifier K0404 has not been found"
}
/api/customers/K0002/devices/ABCDEF012345/bypass-authentication
as application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 404 Not Found {
"title": "Device not found",
"detail": "Device with unique identifier ABCDEF012345 has not been found",
"described_by": "http://api.nfon.net/probs/device-not-found"
}
/api/customers/K0002/devices/00123/bypass-authentication
as application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0002]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/devices/123456789abc/bypass-authentication
as application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}
/api/customers/K0003/devices/123456789abc/bypass-authentication
as application/json; charset=UTF-8{}
Then I should receive HTTP/1.1 403 Forbidden {
"title": "Access forbidden",
"detail": "Access denied to [Customer] with id [K0003]",
"described_by": "http://api.nfon.net/probs/invalid-authorization"
}