Assert whitespace websocket token rejection in smoke
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
8951ec7072
commit
aa016aa047
1 file changed
+5
@@ -1360,6 +1360,11 @@ async function main() {
|
||||
const emptyTokenWs = new WebSocket(`${parsedWsUrl.origin}${parsedWsUrl.pathname}?token=`);
|
||||
await waitForUnauthorizedCloseWithoutMessages(emptyTokenWs);
|
||||
|
||||
const whitespaceTokenWs = new WebSocket(
|
||||
`${parsedWsUrl.origin}${parsedWsUrl.pathname}?token=%20%20`,
|
||||
);
|
||||
await waitForUnauthorizedCloseWithoutMessages(whitespaceTokenWs);
|
||||
|
||||
const ws = new WebSocket(wsUrl);
|
||||
await new Promise((resolve, reject) => {
|
||||
let sawHello = false;
|
||||
|
||||
Reference in new issue
Block a user