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

Commit 48aacad

Browse files
committed
Update WebTransport authentication process.
Transport ID is created during publishing and subscribing, it would be too late for authentication. A token for WebTransport connection is issued during joining so client can create a WebTransport connection just after joining.
1 parent 37e22f5 commit 48aacad

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,20 @@ Each package has a 128 bit header for session ID.
2525

2626
It may increase about 2% network cost.
2727

28+
## Signaling Session
29+
30+
After creating a WebTransport, a stream with session 0 should be created for authentication and signaling. Every signaling message is followed by a 32 bit length integer that indicates the body's length.
31+
32+
```
33+
0 1 2 3
34+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
35+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
36+
| Message length |
37+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
38+
| Message ...
39+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
40+
```
2841

2942
## Authentication
3043

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.
44+
If signaling messages are 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 token for WebTransport as a signaling message. WebTransport token is issued during joining a conference.

0 commit comments

Comments
 (0)