Page 1 of 1

Online sources Login

PostPosted: Wed Mar 20, 2013 3:37 pm
by Venom
Hi folks,
maybe it's a well known issue, but I'm new in this software and Google researches were unsuccessfully.

I have to share with Serviio a stream that needs http authentication, but it seems that there's no way to achieve this task.
Can I add sources with login info?

Thank you all!

Re: Online sources Login

PostPosted: Wed Mar 20, 2013 4:30 pm
by slyguy42o
I am not an expert in this arena but I think you would need a custom groovy file to be able to do that. There is def not a way to add this kind of resource through the console.

Re: Online sources Login

PostPosted: Wed Mar 20, 2013 9:20 pm
by Venom
Thank you Sly!

Searching for a plugin give no results: hell, no one has ever needed to stream a simple http login protected page (as any ip cam)...
I can give a try to make my own plugin, but I'm not a Java addicted.

Thank you again guy!

Re: Online sources Login

PostPosted: Thu Mar 21, 2013 9:56 am
by Venom
From this post http://forum.serviio.org/viewtopic.php?f=20&t=4620&p=32034&hilit=login#p31710 it seems that there was no way, in 2009, to post login info with groovy plugins.

Does anybody know if nowadays this issue is solved?

I could try creating a web app that redirects the web streaming after doing the login, but this is not what I was looking for...

Re: Online sources Login

PostPosted: Thu Mar 21, 2013 10:04 pm
by zip
if it's just a rss feed that is secured (via basic http authentication), you would use something like: http://user:password@server.com/rss.xml

Re: Online sources Login

PostPosted: Sun Dec 29, 2013 6:00 pm
by TobyDE
I have to put up this topic again.

I've an rss feed that needs my email address as username, so I encoded the @ character accordingly but I still get an error 403. Here is the log entry (changed email, password and domain name ;-))

Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://name%40email.com:password@feedu ... 1-1/hd.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
at org.serviio.util.HttpClient.retrieveStreamFromConnection(HttpClient.java:169)


If I copy and paste the URL to chrome it works.

Re: Online sources Login

PostPosted: Wed Jan 01, 2014 8:58 pm
by TobyDE
Have now also tried to encode the dot with %2E, but does not work as well. Is there a bug or do I do something wrong?

Re: Online sources Login

PostPosted: Fri Jan 03, 2014 11:17 am
by zip
I'm not sure if https works

Re: Online sources Login

PostPosted: Sun Jan 05, 2014 4:39 pm
by TobyDE
That's a good point. I checked if I can obtain the feed via http and fortunately it works in the browser. But serviio gets again an error 403.

Re: Online sources Login

PostPosted: Mon Jan 06, 2014 8:49 am
by zip
Perhaps its a bug with @ in the user name. Can you pm me the credentials and URL to try an fix it? I'm away for another 2 weeks but can look at it then.

Re: Online sources Login

PostPosted: Mon Jan 06, 2014 1:28 pm
by TobyDE
Will do so, thanks!