FAQ  •  Register  •  Login

Online sources Login

<<

Venom

Serviio newbie

Posts: 8

Joined: Wed Mar 20, 2013 3:29 pm

Location: Milan, IT

Post Wed Mar 20, 2013 3:37 pm

Online sources Login

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!
<<

slyguy42o

DLNA master

Posts: 481

Joined: Wed Oct 24, 2012 5:29 am

Post Wed Mar 20, 2013 4:30 pm

Re: Online sources Login

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.
<<

Venom

Serviio newbie

Posts: 8

Joined: Wed Mar 20, 2013 3:29 pm

Location: Milan, IT

Post Wed Mar 20, 2013 9:20 pm

Re: Online sources Login

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!
<<

Venom

Serviio newbie

Posts: 8

Joined: Wed Mar 20, 2013 3:29 pm

Location: Milan, IT

Post Thu Mar 21, 2013 9:56 am

Re: Online sources Login

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...
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Mar 21, 2013 10:04 pm

Re: Online sources Login

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
<<

TobyDE

Serviio newbie

Posts: 4

Joined: Sun Dec 29, 2013 5:55 pm

Location: Germany

Post Sun Dec 29, 2013 6:00 pm

Re: Online sources Login

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.
Best regards, Toby
<<

TobyDE

Serviio newbie

Posts: 4

Joined: Sun Dec 29, 2013 5:55 pm

Location: Germany

Post Wed Jan 01, 2014 8:58 pm

Re: Online sources Login

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?
Best regards, Toby
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Jan 03, 2014 11:17 am

Re: Online sources Login

I'm not sure if https works
<<

TobyDE

Serviio newbie

Posts: 4

Joined: Sun Dec 29, 2013 5:55 pm

Location: Germany

Post Sun Jan 05, 2014 4:39 pm

Re: Online sources Login

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.
Best regards, Toby
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 06, 2014 8:49 am

Re: Online sources Login

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.
<<

TobyDE

Serviio newbie

Posts: 4

Joined: Sun Dec 29, 2013 5:55 pm

Location: Germany

Post Mon Jan 06, 2014 1:28 pm

Re: Online sources Login

Will do so, thanks!
Best regards, Toby

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 46 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.