Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-03-2010, 11:39 AM   #1
Jim Chapman
Addict
Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.
 
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
Jim Chapman is offline   Reply With Quote
Old 10-03-2010, 01:14 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It uses Digest, basic is way too insecure.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-03-2010, 02:26 PM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,728
Karma: 6690881
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.
chaley is offline   Reply With Quote
Old 10-03-2010, 02:38 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by chaley View Post
It could offer basic, with the strong hint that people who use it should connect through stunnel.
If the W7 browser doesn't support digest auth, what are the chances it will support https?
kovidgoyal is offline   Reply With Quote
Old 10-03-2010, 02:44 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,728
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
If the W7 browser doesn't support digest auth, what are the chances it will support https?
https works fine on both my WinMo 6.5 browsers (IE and Opera). I also remember it working on WinMo 6.0. Don't remember all the way back to WinMo 5.

It is hard to believe that WinMo 7 would break something that already works, but stranger things have happened.
chaley is offline   Reply With Quote
Advert
Old 10-03-2010, 03:19 PM   #6
Jim Chapman
Addict
Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.
 
Posts: 309
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
Quote:
Originally Posted by chaley View Post
https works fine on both my WinMo 6.5 browsers (IE and Opera). I also remember it working on WinMo 6.0. Don't remember all the way back to WinMo 5.

It is hard to believe that WinMo 7 would break something that already works, but stranger things have happened.
They have broken it (WP7 is by design incompatible with everything that came before). They will presumably fix it in a patch release, quite soon.

In the mean time, Freda for WP7 will only work for browsing your Calibre catalog if you have no password set.
Jim Chapman is offline   Reply With Quote
Old 10-04-2010, 12:09 PM   #7
Jim Chapman
Addict
Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.
 
Posts: 309
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
Quote:
Originally Posted by kovidgoyal View Post
If the W7 browser doesn't support digest auth, what are the chances it will support https?
Oddly enough, it does support https, at least according to the documentation.

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'.
Jim Chapman is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 06:11 AM.


MobileRead.com is a privately owned, operated and funded community.