#1 2011-10-31 18:50:30

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

authentication content-type

The timestamp is returned from the server with a text/plain content-type but the nonce is return with content-type set to JSON. Should

 aHead := 'Content-Type: '+TEXT_CONTENT_TYPE; 

be added to TSQLRestServer.Auth in SQLite3Commons.pas?

I'm trying to use javascript to authenticate.

Offline

#2 2011-11-01 09:55:27

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: authentication content-type

Yes this shall be the case.

I've commit this modification:
http://synopse.info/fossil/info/f888f68320

Thanks for the feedback.

Your resulting javascript code should be very interesting.

Offline

#3 2011-11-01 15:25:50

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

Re: authentication content-type

Thanks a lot.

I've only got as far as decoding the server timestamp and working out the offset in javascript but I'll post when I've got something working.

Offline

Board footer

Powered by FluxBB