contracts/mail-relay refreshed from IWDL 6cd99f7 (64 files). A token the service knows as another site's is forgotten without revoking and the site enrols as itself; a hand-issued one is refused. The fake requires the header and answers host-mismatch. Co-Authored-By: Claude Fable 5.2 <[email protected]>
30 lines
546 B
JSON
30 lines
546 B
JSON
{
|
|
"id": "rotate-previous-token",
|
|
"title": "A token that was already replaced cannot rotate",
|
|
"given": {
|
|
"site": "active",
|
|
"token": "previous"
|
|
},
|
|
"request": {
|
|
"method": "POST",
|
|
"path": "/v1/rotate",
|
|
"headers": {
|
|
"authorization": "Bearer {{token}}",
|
|
"x-intecion-site": "{{host}}"
|
|
}
|
|
},
|
|
"response": {
|
|
"status": 409,
|
|
"schema": "Error",
|
|
"body": {
|
|
"ok": false,
|
|
"code": "already-rotated"
|
|
}
|
|
},
|
|
"client": {
|
|
"retry": false,
|
|
"reEnrol": false,
|
|
"status": null
|
|
}
|
|
}
|