Project

General

Profile

[Solved]Client authentication

Added by Mauro KTM about 3 years ago

I'm testing tvheadend server.
How does work the authentication?
If I use the tvHeadend Client (on the AppleTV) the Server recognize the user and the sreaming works fine.
If I use VLC the user is not recognized and after few minutes it closes the connection

Thank you
M.


Replies (14)

RE: Client authentication - Added by saen acro about 3 years ago

What url you use for VLC?

RE: Client authentication - Added by saen acro about 3 years ago

Do you create "*" user?

RE: Client authentication - Added by Mauro KTM about 3 years ago

what do you mean as "*" user?

RE: Client authentication - Added by saen acro about 3 years ago

User without autentification, simple for home usage.

RE: Client authentication - Added by Mauro KTM about 3 years ago

I confirm that with "*" user works.

But I need the client must be authenticated.

RE: Client authentication - Added by saen acro about 3 years ago

If you have '*' user then exclude ip of your vlc clent.

RE: Client authentication - Added by Mauro KTM about 3 years ago

I'm not understanding.
Maybe I didn't explained my problem in the right way

this is the scenario:

I'm testing a tvheadend server (Build: 4.2.8-36~g5bdcfd8ac) for remote use.
Since the service cannot be public and free, the users must login so I cannot keep a "*" user.

The clients use VLC using the following URL http://user:pwd@XXXXXXX:9981/playlist/channels.m3u

but I have the following issue:

1) tvheadend server doesn't recognize the username. Viceversa if I use for example a Apple TV Client TVH Client the username is displayed.
2) Using VLC (but I see also with AplleTV) after a random time (10-20 min) the server seems to close the connection.

Any idea?

Thnx
M.

RE: Client authentication - Added by saen acro about 3 years ago

Update to latest version 4.3.18xx
set on password tab persistent password

http://user:pwd@XXXXXXX:9981/playlist/auth/channels

there is no .m3u on end and never was have.

also can use HTSP plugin in VLC
https://github.com/BtbN/vlc-htsp-plugin
https://tvheadend.org/boards/4/topics/8509?r=24345#message-24345

RE: Client authentication - Added by Mauro KTM about 3 years ago

I reinstalled the server 4.3-1981~gc6bb43d85

But now pointing with VLC
http://user:pwd@XXXXXXX:9981/playlist/auth/channels

It downloads the channel list but is not able to play anything

RE: Client authentication - Added by saen acro about 3 years ago

this url must be open in VLC
after on user is enabled persistent authentication in password feeld
and allowed plain/digest authentication

RE: Client authentication - Added by Mauro KTM about 3 years ago

No way...

viceversa if I download the channel list (as m3u file) and I point the channel adding the credentials:

http://user:pwd@xxxxxxxxx:9981/stream/channelid/1394544343?profile=pass

It works

It seems VLS is able to authenticate itself only once.
If it's able to download the channel list after that is not able to keep the connection to play the channels
If I point directly the URL of the channel (with user and pwd) I can watch it

RE: Client authentication - Added by saen acro about 3 years ago

You do something wrong

http://11:[email protected]:9981/playlist/auth/channels

as result

http://192.168.1.222:9981/stream/channelid/1165510174?auth=P084PH0acs9hiIDwmTCfuSHl0AMw&profile=pass
auth=P084PH0acs9hiIDwmTCfuSHl0AMw

this is equal to user and password

RE: Client authentication - Added by Mauro KTM about 3 years ago

Yes. I did a mistake with the URL

This is the right one as you suggested:

http://user:pwd@xxxx:9981/playlist/auth/channels

Now it works
Thanks for your help

    (1-14/14)