Send additional fields to the external authentication URL (#1408)

* send 'protocol' to the external authentication URL

* send session ID to the external authentication URL
This commit is contained in:
Alessandro Ros
2023-01-22 19:48:33 +01:00
committed by GitHub
parent ef214b7649
commit b02d3b83c7
10 changed files with 53 additions and 20 deletions

View File

@@ -42,7 +42,7 @@ func TestRTSPServerAuth(t *testing.T) {
var a *testHTTPAuthenticator
if ca == "external" {
var err error
a, err = newTestHTTPAuthenticator("publish")
a, err = newTestHTTPAuthenticator("rtsp", "publish")
require.NoError(t, err)
}
@@ -59,7 +59,7 @@ func TestRTSPServerAuth(t *testing.T) {
if ca == "external" {
a.close()
var err error
a, err = newTestHTTPAuthenticator("read")
a, err = newTestHTTPAuthenticator("rtsp", "read")
require.NoError(t, err)
defer a.close()
}
@@ -226,7 +226,7 @@ func TestRTSPServerAuthFail(t *testing.T) {
require.Equal(t, true, ok)
defer p.Close()
a, err := newTestHTTPAuthenticator("publish")
a, err := newTestHTTPAuthenticator("rtsp", "publish")
require.NoError(t, err)
defer a.close()