Islandora/islandora — pull request #205 by jmacwilliams (2012-11-27 15:01:43+00:00)
Title: added authentication token system to help djatoka authentication problems

**RUN update.php AFTER INSTALLING THIS**
***database tables have been updated***

Added code to create/validate authentication tokens. Updated a couple of core menu hooks to use the tokens on certain requests.

To use the token system, you simply request a token (in php) for a specific datastream with islandora_get_object_token(pid, dsid)

then you submit your url appending "?token=<your token here>"
when islandora tries to retrieve the object for you, it will validate your token (with islandora_validate_object_token) and if it passes, the object is returned to you.

The tokens are written to a new database table when created, and deleted when used.