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: 229
Karma: 2000424
Join Date: Oct 2009
Device: Nokia Lumia 920 Windows 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: 25,949
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It uses Digest, basic is way too insecure.
kovidgoyal is online now   Reply With Quote
Old 10-03-2010, 02:26 PM   #3
chaley
"chaley", not "charley"
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: 5,454
Karma: 831552
Join Date: Jan 2010
Location: France
Device: Many android devices
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: 25,949
Karma: 5036099
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 online now   Reply With Quote
Old 10-03-2010, 02:44 PM   #5
chaley
"chaley", not "charley"
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: 5,454
Karma: 831552
Join Date: Jan 2010
Location: France
Device: Many android devices
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
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: 229
Karma: 2000424
Join Date: Oct 2009
Device: Nokia Lumia 920 Windows 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: 229
Karma: 2000424
Join Date: Oct 2009
Device: Nokia Lumia 920 Windows 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 12 09-05-2012 01:27 AM
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 04:46 AM.


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