10-03-2010, 11:39 AM | #1 |
Addict
Posts: 309
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
|
Calibre Content Server HTTP Authentication - Basic or Digest?
Hi,
I'm in the closing stages of building the Windows Phone 7 version of my book reader (Freda), and I'm just working on the Calibre Content Server integration. It works fine if I don't set a password on the Content Server, but if I do set a password, it does not work. My code is doing the right thing, supplying a credentials object as required ... but I think the problem is the type of authentication. At the moment the Windows Phone 7 development tools only support 'Basic' HTTP Authentication; I wonder if perhaps the content server is insisting on 'Digest' HTTP Authentication. That is a feature that Microsoft, in their wisdom, have not (yet) provided on WP7. Can someone familiar with the code tell me: - Does the content server insist on Digest authentication and refuse to use Basic authentication? (by the way, I think this would be a reasonable thing to do; it is Microsoft who are being daft) - Or is there some setting I can use to make the content server use Basic authentication? - Or is my suspicion wrong? (which is to say that my problems are caused by something else, and I have more debugging to do) By the way, I noticed some comments about authentication problems with Android software. I wonder whether this is a similar problem. Any advice will be much appreciated. Thanks, Jim |
10-03-2010, 01:14 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It uses Digest, basic is way too insecure.
|
Advert | |
|
10-03-2010, 02:26 PM | #3 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
It could offer basic, with the strong hint that people who use it should connect through stunnel.
|
10-03-2010, 02:38 PM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
10-03-2010, 02:44 PM | #5 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
It is hard to believe that WinMo 7 would break something that already works, but stranger things have happened. |
|
Advert | |
|
10-03-2010, 03:19 PM | #6 | |
Addict
Posts: 309
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
|
Quote:
In the mean time, Freda for WP7 will only work for browsing your Calibre catalog if you have no password set. |
|
10-04-2010, 12:09 PM | #7 | |
Addict
Posts: 309
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
|
Quote:
As for the Digest Authentication point: I have found a recipe for how to 'roll your own' on WP7. So if Microsoft don't get round to implementing the API soon, I do apparently have a 'Plan B'. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Content Server | statiiq | Calibre | 18 | 11-04-2016 03:12 PM |
Calibre Content Server | TonytheBookworm | Calibre | 2 | 09-07-2010 09:47 PM |
Content server - basic question | Viseguy | Calibre | 2 | 09-04-2010 11:32 PM |
content server in calibre | bruceOz | Calibre | 1 | 04-16-2010 04:23 AM |
HTTP authentication for feeds with calibre | DAiki | Calibre | 2 | 10-12-2008 08:49 AM |