FAQ  •  Register  •  Login

CDS Login Serviio 2

<<

jimgeldermann

Serviio newbie

Posts: 14

Joined: Sat Oct 22, 2016 5:58 pm

Post Tue Mar 10, 2020 9:41 pm

CDS Login Serviio 2

Just upgraded to 2 and login broke.

This returns a 401

String gmt = getGMT(); //gmt Tue, 10 Mar 2020 21:37:37 GMT

String str1 = calculateRFC2104HMAC(dftUName + ":" + dftPWord, dftPWord);
String str2 = calculateRFC2104HMAC(gmt, str1);
System.out.println("str2 " + str2); //LswB/2X6jSPtvhJ6/z8G0SjscQ0=

conn.setRequestProperty("Authorization", "Serviio UserName=" + dftUName + ", Signature=" + str2);

The calculateRFC2104HMAC() worked for the Base64 HMAC Sha1 encoding in version 1
<<

jimgeldermann

Serviio newbie

Posts: 14

Joined: Sat Oct 22, 2016 5:58 pm

Post Wed Mar 11, 2020 2:45 pm

Re: CDS Login Serviio 2

Sorry I had left out -

conn.setRequestProperty("Date", gmt);
conn.setRequestProperty("X-Serviio-Date", gmt);

added back into and now I can connect.

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 3 guests

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