drupal_get_token shifts around every request to avoid CSRFs on the /ajax/tincanapi/track path. This path works for authenticated users just fine but anonymous users get a different token each request so it's not possible to do this (via this method). Flags and other modules have implemented https://www.drupal.org/project/session_api in order to make this possible since the session can be linked to something in the database that's stationary.

CommentFileSizeAuthor
#2 tincanapi-anon-ajax-support-2791895-2.patch540 bytesbtopro

Comments

btopro created an issue. See original summary.

btopro’s picture

Status: Active » Needs review
StatusFileSize
new540 bytes

there's a flag in drupal_valid_token for anonymous users as well as still allowing authenticates users to get successful validation. patch included.

nve’s picture

Am I correct, this patch isn't needed in 2.0 anymore?

osama mohsen’s picture

@btopro how add new keys in tincan api and validation class recognize of key, what can i do?

btopro’s picture

i'm sorry I don't understand the question