Fullscreen
[Show/Hide Right Column]

Display a link on a secure page using an access token

Plugin Get Access Token

Starting with Tiki7, this plugin which requires admin validation is designed for an admin to display a link on a secure page to another page using a security access token. This might be useful where on one page which is accessible to users through a token the user needs to be able to access another secondary page using a different token.

Usage and Parameters

An example:
{GETACCESSTOKEN(entry="tiki-payment.php" keys="invoice" values="23") /}


Required parameters are in bold
Preferences required: auth_token_access, wikiplugin_getaccesstoken
Parameters Accepted Values Description Default Since
entry text The path of part of the path for which the token is for
keys text Query string parameter keys for which the token is for, separated by :
values text Query string parameter values for which the token is for, separated by :


Example

Imagine that you have a survey created on a tracker splitted in many different wiki pages (using PluginTracker in them).

You need to have an autoincrement field of type ",,,itemId", and if you can find a way to make the multiple tokens easily, then you can use this plugin this way:

{TRACKER(trackerId=1,fields=1:2, action=>Save and Next,
url=>tiki-index.php?page=next&TOKEN={GETACCESSTOKEN(entry="tiki-index.php" keys="page:itemId" values="next:{$f_1})) /}


where {$f_1} is that autoincrement itemId field above.


Alias

GetAccessToken


Contributors to this page: lindon137 điểm  , xavi67984 points  and Nelson810 points  .
Page last modified on Sunday 08 January, 2012 21:17:04 UTC by lindon137 điểm .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki