Structures

Page actions

Token Access

Allows to access the content with superior rights with the presentation of a token. The primary use of this authentication method is to grant temporary access to content to an external service. Ex.: an external service needs to crawl your content to make a report.

It is also possible to combine with Tell a friend. This is good if you want to give a one time access to a page or a file, without creating a username/password and setting the group and permissions.

This is especially useful if you want to share a large file without having to send it via e-mail.

Starting in Tiki9, there is an admin panel at: "Admin home > Security > Tokens" (tiki-admin.php?page=security&cookietab=5):

Moreover, Tiki9 brings an interface to manage tokens at (tiki-admin_tokens.php). For instance, if you have shared permissions to view some page with one friend, you would have one token generated for your page, which can be listed with this interface:

If you want to create new tokens by hand, you can do that with the tab "Add new token". In the "Full URL" field you need to copy paste the full URL of the page in the "tiki-" format. It does not work with SEFURLs yet (as of Tiki 12.x). In the "Groups" field you insert the Groups you want to be "applied" on the user or a service accessing the page with the token as if they were a member of that group.

One use case for this manual setting of token access is to manage Batch actions, that can be run based on cron jobs set on external servers. See more information in Batch

Using a token

Limitations

You cannot edit already created tokens.

The token param requested in the URL must always be in uppercase letters: TOKEN=....

The URL used to generate the new token should not contain any URL encoded values, like %2C, and any multivalue array field params with square brackets, like listfields[]. For example using URL like this will fail:

Related Video "Features and Options in Tiki"

On this #tikiexpresstutorial, using #tiki19 I’ll show you:
How to enable a feature from the Control Panels
How to enable a Global Feature from the features panel
How to enable an Interface feature
A quick overview of the Programmer features
And where to look for feature options