GNOME Bugzilla – Bug 712131
gst-rtsp-server: allow auth with certificate and no basic authentication
Last modified: 2013-11-13 08:55:08 UTC
Currently, when an auth is set to the server a basic auth needs to be added if you want to enable TLS support. So, the URI will always look like: rtsps://user:password@host:port/path It would be great that this was supported as well: rtsps://host:port/path
Created attachment 259629 [details] [review] do not perform checks if no basic auth added We check if we have added any basic auth, if not we only perform the check connect to set the TLS certificate.
This is not right. The idea is to use gst_rtsp_auth_set_default_token() to list the authorizations of unauthenticated clients.
(In reply to comment #2) > This is not right. The idea is to use gst_rtsp_auth_set_default_token() to list > the authorizations of unauthenticated clients. That's what I expected ;-). I tried that with an empty token but didn't work. I'll take a closer look today, sorry, I was in a hurry yesterday.
OK, marking as INVALID. We can certainly do this with the default token. I just wanted something that required less typing. Now we need: token = gst_rtsp_token_new (GST_RTSP_TOKEN_MEDIA_FACTORY_ROLE, G_TYPE_STRING, "all", NULL); gst_rtsp_auth_set_default_token (auth, token); gst_rtsp_permissions_add_role (permissions, "all", GST_RTSP_PERM_MEDIA_FACTORY_ACCESS, G_TYPE_BOOLEAN, TRUE, GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT, G_TYPE_BOOLEAN, TRUE, NULL); gst_rtsp_media_factory_set_permissions (factory, permissions);
I agree that it is a lot of typing for nothing. I was thinking about a method on GstRTSPAuth to get the 'default' token or maybe to make a method to allow everything as if no default token was configured.