Open bentorkington opened 2 months ago
I made a change to allow OPTIONS
request to ignore authentication and it seems to work, VLC show the login window.
The server do not respond to DESCRIBE
because it close the socket just after detecting bad auth on OPTIONS, so VLC send the DESCRIBE
on a closing socket.
While VLC can connect when embedding the credentials in the RTSP URL, the connection fails when using URLs without credentials. The user is never prompted for a password. Normally, VLC prompts the user for credentials when none are in the URL and authentication is required.
After receiving a 401 to the first
OPTIONS
request, VLC then attempts to authenticate with an empty username and password. This also returns a 401, but VLC then issues aDESCRIBE
request with the same credentials anyway.RtspServer
never responds to this message, and VLC gives up without prompting the user for credentials.While this seems like an unconventional RTSP conversation, (sending a
DESCRIBE
straight afterOPTIONS
get a 401), it seems like a bug not to respond to theDESCRIBE
with another 401.I intend to submit a PR for this but I have other priorities right now.
PCAP of VLC -> RtspServer failed auth