Node authorize link

Component ID

1173784

Component name

Node authorize link

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

2651

Component created

Component changed

Component body

Generates link for view, edit, or delete content without login.

Module maintains authorization key for every node and gives additional grants (view/edit/delete) to every user (anonymous too) who accesses page with correct key in URL. Module offers function node_authlink_get_url($node, $op = 'view') for generate absolute URL to selected operation (e.g. for e-mail notifications).

Authkeys are generated for every node (in configured content type) once for all operations. In content type form you can configure which operations to allow and authomatic expiration of keys.

How to get keys?

Keys are stored in database, you can get them by this functions:

 131 /**
 132  * Loads key from NID.
 133  */
 134 function node_authlink_load_authkey($nid)

 140 /**
 141  * Get edit URL of specified node.
 142  * @param $node Node object or NID.
 143  * @param $op Operation to do with node. view, edit (default) or delete.
 144  */
 145 function node_authlink_get_url($node, $op = 'edit')

If you want to use Rules (such as send auth URL to e-mail) you have to use PHP snippet with one of functions above.

Future

Module could be much useful with Token support (you can get key or URL by data selector in Rules directly). I am not going to write this enhancement, its your turn (patchs are welcome :-)).