The obvious first-glance solution would be to delegate authentication always to OWIF, but that will have some consequences which I need to consider carefully. One of them is that I have a demand that streamproxy can work standalone without OWIF. There is no functional nor technical requirement that transcoding be initiated by OWIF, it's just the most user friendly option so commonly used. That means some sort of authentication must remain inside streamproxy. And then a few other considerations as well.
Also note that the option "allow authentication for streaming" in OWIF is not functional and has never worked, in OpenPLi for the following reason:
- for transcoding on "streamproxy" transcoding type receivers, the streamproxy does not understand the session cookie (-sid)
- for transcoding on "enigma" trancoding type receivers, the streamserver in enigma does not understand the session cookie (-sid) as well
- for streaming, the enigma streamserver is also used, which, again, does not understand the session cookie.
Even if I would adapt streamproxy to be able to handle the OWIF session cookie, there would still be two cases (#2 and #3) not covered. For that you would need to set and enable authentication for streaming/transcoding in enigma itself.
The changes needed for the session cookie will probably mean, one way or another, that the solution I had for for anudanan's case can probably no longer be supported. Anyway I think the combination of OWIF auth disabled and streaming auth enabled is a jar full of snakes and something you'd really not should be wanting (even if the use of a certain app dictates it).
Edited by Erik Slagter, 10 January 2019 - 17:32.