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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 53 additions and 20 deletions

View file

@ -176,7 +176,7 @@ func TestRTMPServerAuth(t *testing.T) {
var a *testHTTPAuthenticator
if ca == "external" {
var err error
a, err = newTestHTTPAuthenticator("publish")
a, err = newTestHTTPAuthenticator("rtmp", "publish")
require.NoError(t, err)
}
@ -211,7 +211,7 @@ func TestRTMPServerAuth(t *testing.T) {
if ca == "external" {
a.close()
a, err = newTestHTTPAuthenticator("read")
a, err = newTestHTTPAuthenticator("rtmp", "read")
require.NoError(t, err)
defer a.close()
}
@ -296,7 +296,7 @@ func TestRTMPServerAuthFail(t *testing.T) {
require.Equal(t, true, ok)
defer p.Close()
a, err := newTestHTTPAuthenticator("publish")
a, err := newTestHTTPAuthenticator("rtmp", "publish")
require.NoError(t, err)
defer a.close()