<div dir="ltr"><div dir="ltr">Hi Michael and everyone,<div><br></div><div>Thank you for that info. When reviewing the referenced code snippet, I had two questions</div><div><br></div><div>1) <b>gst_rtsp_media_factory_add_role</b> (this->factory, user_name,</div>      GST_RTSP_PERM_MEDIA_FACTORY_ACCESS, G_TYPE_BOOLEAN, TRUE,<br>      GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT, G_TYPE_BOOLEAN, TRUE, NULL);<br><br>What is the difference between: <b>GST_RTSP_PERM_MEDIA_FACTORY_ACCESS</b>  and 

<b>GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT</b><br><br>When I checked the docs, both said FALSE will return a 404 error when trying to access the media. In the code, it appears to setup some users only with MEDIA_FACTORY_ACCESS and not MEDIA_FACTORY_CONSTRUCT.<div><br></div><div><br>2)  After the roles are added if the user access changes. For example a user is removed or their password updated, I could not find a way to remove the user. </div><div><br></div><div>For example the code calls two functions to create the user and set the password, I wanted the opposite to undo this. </div><div><br></div><div>//set the user<br></div><div><b>gst_rtsp_media_factory_add_role( ... )</b>  -> 

<b>gst_rtsp_media_factory_remove_role( .. )</b></div><div><b>gst_rtsp_auth_add_digest  ( ... ) </b>->  

<b>gst_rtsp_auth_remove_digest ( .. )</b><br><br><br>Thank you !<br><br><br><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 30, 2021 at 6:33 PM Michael Gruner <<a href="mailto:michael.gruner@ridgerun.com">michael.gruner@ridgerun.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hello Dwight<div><br></div><div>Here's a working example from the server repo itself:</div><div><br></div><div><a href="https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-auth-digest.c" target="_blank">https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-auth-digest.c</a></div><div><br></div><div>Michael</div><div><a href="http://www.ridgerun.com" target="_blank">www.ridgerun.com</a></div><div><br><div><br><blockquote type="cite"><div>On 30 Aug 2021, at 14:09, Dwight Kulkarni via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>> wrote:</div><br><div><div dir="ltr">Hi All,<div><br></div><div>I have got Gstreamer working with my C++ program and I am using the RTSP server in Gstreamer to work with my pipeline.</div><div><br></div><div>When I visit the network address: rtsp://<a href="http://192.168.0.20/myserviceurl" target="_blank">192.168.0.20/myserviceurl</a></div><div><br></div><div>It is showing the network stream correctly in VLC Client.</div><div><br></div><div>However, now I want to turn on digest authentication so that we can secure the stream, and it can only be seen when the username and password is supplied in VLC like so:</div><div><br></div><div>rtsp://<a href="http://username:password@192.168.0.20/myserviceurl" target="_blank">username:password@192.168.0.20/myserviceurl</a></div><div><br></div><div>If my program has a list of users and passwords, how can I register them with the Gstreamer RTSP server and require digest authentication?<br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Sincerely,</span><div><br></div><div>Dwight Kulkarni      </div></div></div></div></div></div></div></div></div>
</div></blockquote></div><br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Sincerely,</span><div><br></div><div>Dwight Kulkarni                </div><div><br></div></div></div></div></div></div></div></div>