WebRTC Authorization? #3142
Replies: 2 comments
-
Hey, I think I have the same question. Unfortunately, it's not fully explained here. https://github.com/bluenviron/mediamtx?tab=readme-ov-file#webrtc-clients |
Beta Was this translation helpful? Give feedback.
-
Hello, including auth credentials in the URL is a security flaw that is blocked by all browsers for security reasons. Credentials should not be propagated together with URLs. Instead of credentials, you can use JWTs and append them to the URL in this format:
JWTs have a limited lifetime and therefore are more secure. Instructions on how to setup JWTs are in the README. Regarding OBS, in OBS there's a dedicated space called "Bearer Token" in which you can either put plain credentials in this format:
or, if JWTs are enabled, you can just put the JWT. |
Beta Was this translation helpful? Give feedback.
-
Question
How does on include the auth credentials in the url when publishing a webrtc stream?
Beta Was this translation helpful? Give feedback.
All reactions