- Introduced `PemToCoseConversionTest` for WebAuthn key testing. - Added example Nginx config (`nginx-example.conf`) with CORS and PHP handling. - Created HTTP test scripts for self-serve API endpoints. - Provided `.env` example for Elastic Stack credentials. - Updated `.gitignore` to include IntelliJ and Nginx logs.
15 lines
432 B
HTTP
15 lines
432 B
HTTP
### Attempt to enable MACHINE relay without allowed services -> expect 403
|
|
POST http://localhost/modules/self-serve/lane/relay/machine/enable
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
{
|
|
"lane_id": 1
|
|
}
|
|
|
|
> {%
|
|
client.test("Enabling MACHINE without allowed services should be forbidden (403)", function() {
|
|
client.assert(response.status === 403, "Expected 403 Forbidden, got " + response.status);
|
|
});
|
|
%}
|