Authentication

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
pmunch's picture

Cannot post node as authenticated user from phonegap

Hi all,

I have spent hours trying to figure this out as well as finding relevant code examples, I'm stuck...

I'm building a basic phonegap app that should allow to post a node as authenticated user. I can successfully login, but I cannot further post as this authenticated user thru X-CSRF-Token: I always get 403 - "Access denied for user 001" ...

I summed up the steps I follow in the dummy loginAndPost() function below.

<

pre>
function loginAndPost() {

// Set some vars

var username = "001";
var password = "001";
var server_uri = "http://my-drupal-website";
Read more
Subscribe with RSS Syndicate content

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: