• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using cdb_auth with Livecode Server
#1
So I got a little creative with this thread (https://forums.livecloud.io/showthread.p...ight=hostm), integrating livecloud with Livecode Server.  I am successful in getting the local auth verified. 

Here is the log (it stops after local data verified and does not send to, and thus does not receive, from the cloud):

---
- - - - - - - - - - - - - - - - - - - - -
Wed, 18 Dec 2024 22:59:15 +0000
Local authentication passed: local data verified
- - - - - - - - - - - - - - - - - - - - -
---

But, it stops there and does not auth the cloud data (no send/no receive). The script gets through cdb_setLogMode and cdb loadTable "cdbCache," but stops midway through cdb_auth and stops the handler in its tracks after verifying local data. Of course, I am successful getting an auth from the cloud in the IDE and all other standalones (android & iOS). My question is then: What is the most likely culprit preventing getting a cloud auth when cdb_auth is sent from a /home/public_html folder with a server (here. Livecode Server)?  

Code:
on initializeCanelaDB
  wait 0 milliseconds with messages

  put "[authkey]" into gCDBAuthKey

  set itemdel to slash
  put item 1 to -2 of (the effective fileName of this stack) into tServerPath
  put "/CanelaDB/libraries/" after tServerPath  
  try
     start using stack (tServerPath & "CDB_Header.lib")
     start using stack (tServerPath & "CDB_Starter.lib")
  catch tError
     answer "caught error :)..."
     exit to top
  end try
  cdb_SetLogMode "disk"
  cdb_loadTable "cdbCache"
  get cdb_auth("[login]","[password]","developer")
  cdb_loadTable "*"
end initializeCanelaDB
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)