Page 1 of 1

CDS Login Serviio 2

PostPosted: Tue Mar 10, 2020 9:41 pm
by jimgeldermann
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

Re: CDS Login Serviio 2

PostPosted: Wed Mar 11, 2020 2:45 pm
by jimgeldermann
Sorry I had left out -

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

added back into and now I can connect.

Re: CDS Login Serviio 2

PostPosted: Fri Apr 23, 2021 6:14 am
by GrantWilson
serviio user 24 wrote:
I've been looking for CDS Login documentation. Planned to use Audirvana with Serviio reviewed by essay writers on audiophilestyle forums, but Audirvana couldn't access my Serviio server.



Hello,
I've just downloaded the Serviio CDS API Documentation. I thought Linn Kazoo + Serviio may be a good alternative to Audirvana. If interested, I can PM you the documentation.