#1 2017-04-06 08:20:59

noobies
Member
Registered: 2011-09-13
Posts: 139

18 - AJAX ExtJS Grid with authentication

Hi all, i start learn web with mormot.
i modificate sample 18 to work with webserver using sample 30.
https://www.dropbox.com/s/mljuhvkt3475w … id.7z?dl=0
without auth sample work perfect (http://localhost:8092/web/default) and i see extjs grid with data, but if delete database and change

  DB := TSQLRestServerDB.Create(Model, ChangeFileExt(paramstr(0),'.db3'), False);

to

  DB := TSQLRestServerDB.Create(Model, ChangeFileExt(paramstr(0),'.db3'), True); //Create DB with auth

and try auth with standart login and password (Admin, synopse) and success login i get error in logs

20170406 08163601  -    00.001.422
20170406 08163606  +    mORMotSQLite3.TSQLRestServerDB(027E31F0).URI(GET web/SampleRecord/?SELECT=*&page=1&start=0&limit=10 inlen=0)
20170406 08163606 auth          mORMot.TSQLRestRoutingREST(047EFCD0) AuthenticationFailed(afInvalidSignature) for web/SampleRecord/?SELECT=*&page=1&start=0&limit=10 (session=0)
20170406 08163606 debug         mORMotSQLite3.TSQLRestServerDB(027E31F0) TSQLRestRoutingREST.Error: {  "errorCode":403,  "errorText":"Authentication Failed: Invalid signature (0)"  }
20170406 08163606 srvr          mORMotSQLite3.TSQLRestServerDB(027E31F0)   GET web/SampleRecord -> 403 with outlen=82 in 4406 us
20170406 08163606  -    00.010.922

i read forum and find post https://synopse.info/forum/viewtopic.php?pid=2995#p2995
with sample auth with extjs, but i only start learn and dont understand how combine code auth extjs from albanirneves to sample 18.

Can any help me? Thank you.

Last edited by noobies (2017-04-06 08:21:10)

Offline

Board footer

Powered by FluxBB