Guest versus User Authentication:
I have only been successful at getting data from my DSP when using Guest mode that does not require any form of authentication. I cannot get the User Authentication to work with any of the documentation I have read so far. I have been on at least 10 different sites, trying 3 different methods. I understand that the mobile app version of an app works very well as with the default and sample applications.
Which SDK to Use:
I understand that The JavaScript SDK works very well for web based applications as with the default and example apps. I am trying to use the provided Titanium examples to test both a mobile web app and an Android app. I have not found information that seems to work after I finally figured out why I had errors with a bad URL. Now I have no errors, but I just get no server response to parse.
Logon information:
I believe we need an application header with API Key and sending the body with email and password in JSON format. I truly cannot figure out if lookup keys are require for a user authentication like a logon event. I don’t use any body passing logon credentials in Guest mode and it works. The app is available, but even a user authentication seems to be a major hang-up right now.
cURL testing:
I am trying to setup and test this from both my home DSP which is not SSL and my online DSP which does use SSL. I have tried to use cURL with both sites and it says the email is missing or the password cannot be resolved. I am obviously using this tool incorrectly. This means I may not have an idea as to why the authentication is failing in the first place. I thought I was able to use cURL in my home site from home, but I still got no server response. At work, it seems I cannot connect to either DSP, but maybe that’s because my code is wrong.
Testing my DSP:
I will list my cURL code here so it can be evaluated by someone with stronger knowledge of such things. Perhaps the authentication will work if I can correct confirm how the cURL code should look. My other thought is that my sites are not configured for remote authentication. Maybe someone can actually try to log into my DSP if the settings need to be checked.
cURL Code:
curl -i -k -3 -X POST https://dsp-face2edgeonline.cloud.dreamfactory.com/rest/user/session -H “X-DreamFactory-Application-Name: todojquery” -d ‘{ “email” : "jason.davisson@gmail.com", “password” : “Graphics.69” }’