Jump to content


Photo

using transient -sid user with streamproxy


  • Please log in to reply
13 replies to this topic

#1 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 8 March 2019 - 10:06

Today I've made a fix in OWIF

https://github.com/E...nWebif/pull/926

because the handling of transient user -sid works only if the transient user was created during a HTTP session of a user with a login shell. If you are on the box with HTTPs and use a login shell user, than the m3u file creation works but the follwing request with the url in the m3u file doesn´t work

 

With this fix it works

 

Now I´ve made a little test with streamproxy to use the -sid user for live transcoded streaming. If I comment out the passwd check in clientsocket.cpp and provide the -sid/pw user  in the /web/stream url, than it works fine and a usage of -sid is possible. Also the use of normal users for streaming works with this handling.

 

The idea maybe to use the check of OWIF for auth.

 

Only file streaming is an other stroy because that work without OWIF. To use -sid with filestreaming an idea maybe streamproxy may use a /web/stream url to check the -sid user but I don´t know which suffix after /web/stream is ok for ony passwd check


Edited by anudanan, 8 March 2019 - 10:08.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: using transient -sid user with streamproxy #2 littlesat

  • PLi® Core member
  • 56,223 posts

+691
Excellent

Posted 8 March 2019 - 10:42

I hope the owif people will not revert it...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: using transient -sid user with streamproxy #3 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 8 March 2019 - 10:50

You mean my pull request?
I think they take the fix
It makes no sense that it only works with http login connections

It is also a problem for direct streaming over https with only OWIF an normal user logins which have a login shell

Edited by anudanan, 8 March 2019 - 10:52.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: using transient -sid user with streamproxy #4 ccs

  • Senior Member
  • 229 posts

+7
Neutral

Posted 8 March 2019 - 10:58

GitHub link doesn't work.


test


Re: using transient -sid user with streamproxy #5 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 8 March 2019 - 11:08

It can access the link. Maybe the reason is my flagged useraccount in github. This is happened since two days and I have informed the GitHub supporz. Only users which are logged in on GitHub May see it

Sorry. I don‘t know why Ii am flagged

Edited by anudanan, 8 March 2019 - 11:09.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: using transient -sid user with streamproxy #6 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 8 March 2019 - 11:19

Think link would work to see the changes
https://github.com/E...c82d8fd9e42ec87

Edited by anudanan, 8 March 2019 - 11:19.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: using transient -sid user with streamproxy #7 ccs

  • Senior Member
  • 229 posts

+7
Neutral

Posted 8 March 2019 - 11:46

That link works ok.


test


Re: using transient -sid user with streamproxy #8 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 8 March 2019 - 16:12

I am not quite sure how this PR/commit is related to streamproxy.

 

As said, as soon as the default audio selection stuff is complete (and the OWIF has accepted the required changes), I will fix all of the authentication stuff, including the use of -sid etc.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: using transient -sid user with streamproxy #9 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 8 March 2019 - 16:45

This commit it not special for streamproxy. It fixes also the problem with direct recorded movie streaming over the OWIF port if a user starts this action from a HTTPS login, which is from my point of view the only way how a user should use OWIF from the Internet. That doesn´t work.

 

It is also neccessary to have this fix for using later -sid user with streamproxy if a user play the downloaded M3U file for streaming. If a user klicks the mobil icon from a HTTPS login the later auth check for the -sid user doesn´t work.

 

OWIF uses two site spaces. a site and a sslsite and the pw of the -sid comes from the space which is used for the normal login. But is the stream will start then OWIF must search in both spaces and not only in the site space as today.


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: using transient -sid user with streamproxy #10 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 8 March 2019 - 17:56

As said, as soon as the default audio selection stuff is complete (and the OWIF has accepted the required changes), I will fix all of the authentication stuff, including the use of -sid etc.

How is the idea to auth the -sid user. Is there a OWIF url to auth all users?


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: using transient -sid user with streamproxy #11 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 8 March 2019 - 18:48

No there is not yet one, but as we come there, I will make a PR for one to OWIF. It's really simple. It needs to be an URL that requires authentication, even from localhost (comparable to web/stream) and does absolutely nothing, only report whether the authentication succeeded and store the authentication token (the "-sid" user). If we have that, it all becomes quite simple in streamproxy.

 

I want to have authentication separate from streaming because I want to have the option to have streamproxy do the full authentication itself. There is no obligation to use OWIF to start a transcoding session, you can just as well start a player with an url including the proper tcp port (eg 8002) and the proper service and off you go. It can also include authentication to be done against the password file or using a group. I insist this mechanism keeps working.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: using transient -sid user with streamproxy #12 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 8 March 2019 - 19:38

That sounds very good.
I use streamproxy on both ways. From some apps with direct port access to the streamproxy ports and sometimes with vlc over the m3u filed OWIF

Edited by anudanan, 8 March 2019 - 19:39.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: using transient -sid user with streamproxy #13 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 9 March 2019 - 00:03

The GitHub Support has. cleared my flagged user state. Now also the pullrequest link from the first post works

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: using transient -sid user with streamproxy #14 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 10 March 2019 - 00:40

I hope the owif people will not revert it...

 

They have merged it today

 

https://github.com/E...e00802eabde0f81

 

With this fix now the use of -sid users from streamproxy (after the integration in streamproxy) can work without problems afters HTTPS logins (which are recommended for loginshell users even from internet with portforwarding)


Edited by anudanan, 10 March 2019 - 00:43.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users