-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webrtc: implement the whep http delete method #2507
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2507 +/- ##
==========================================
- Coverage 61.44% 61.03% -0.42%
==========================================
Files 139 138 -1
Lines 15190 15230 +40
==========================================
- Hits 9334 9296 -38
- Misses 5168 5231 +63
- Partials 688 703 +15
... and 17 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hello, i'd like to avoid merging workarounds and instead merge complete implementations. The DELETE method in WHEP has the role of terminating a session, by using a session identifier, that is set by the server through POST responses, through the Location header. The server currently doesn't put the session identifier (secret) into the Location header, but puts it into the ETag header, which is compatible with PATCH but not with DELETE. Therefore, a complete TODO list for implementing this feature is:
Examples of POST and PATCH requests that make use of the Location and ETag header are here: https://datatracker.ietf.org/doc/draft-ietf-wish-whip/ |
53b0fe4
to
866d82e
Compare
@aler9 please check it now. I need your help to understand how to actually implement the I also think that |
d1554f1
to
d86e765
Compare
This is a good question - the difference between secret and ID is that the latter is printed in logs. If we store the secret in logs or use the same variable for secret and ID, we would create a security issue, since anyone able to access logs would be able to hijack sessions. |
With this pr, the secret is now effectively in the url, which we should assume will end up in the logs. Maybe the url should use the ID instead? |
fadbf82
to
86d59f4
Compare
86d59f4
to
341ebbf
Compare
i finished the implementation and merged, thanks! |
added in v1.2.1 |
this actually does nothing more than returning OK to satisfy the whep.js
DELETE
method as mentioned in #2453.