Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 37e22f5

Browse files
committed
Use transport ID for authentication for WebTransport connections.
Since token cannot be used twice, we'll use the transport ID for authentication for WebTransport connections. When WebTransport can be used for signaling, we don't need another WebSocket connection, then token can be used here.
1 parent 9513e17 commit 37e22f5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

doc/design/quic-transport-payload-format.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,4 @@ It may increase about 2% network cost.
2828

2929
## Authentication
3030

31-
After creating a WebTransport, a stream with session 0 should be created for authentication. If signaling is transmitted over WebTransport, authentication follows the regular process defined by [Client-Portal Protocol](https://github.com/open-webrtc-toolkit/owt-server/blob/master/doc/Client-Portal%20Protocol.md). Otherwise, client sends a following message with UTF-8 encoding in JSON format to server.
32-
33-
```webidl
34-
interface WebTransportLoginInfo {
35-
attribute DOMString? token; // Base64 encoded token.
36-
};
37-
```
31+
After creating a WebTransport, a stream with session 0 should be created for authentication. If signaling is transmitted over WebTransport, authentication follows the regular process defined by [Client-Portal Protocol](https://github.com/open-webrtc-toolkit/owt-server/blob/master/doc/Client-Portal%20Protocol.md). Otherwise, client sends a 128 bit length transport ID to the server.

0 commit comments

Comments
 (0)