Access Tokens

In all of the code examples, you will see variables such as token or auth. They refer to an access token.

The idea behind access tokens is to allow you to:

  • identify yourself with Cryptolens (authentication) - let Cryptolens know that you are you
  • make sure only desired permission is given to something (authorization) - eg. method scope, product, etc.

Using an access token, you can specify the methods you want to be able to call, the product you want to use, the license key, and optionally feature you want to change. You can read more about them here.

Creating a new Access Token

In order to create an access token with the permission required by the previous example:

  1. Go to ‘Your account name’ (right corner) > ‘Access Token’.
  2. Click on ‘Create new Access Token’. You will now be on this page.
  3. Enter a name, such as “ActivateToken”.
  4. Check the ‘Activate’ box (under LicenseKey)
  5. Select the ‘Product Lock’ to be the name of your application.
  6. Press ‘Create an Access Token’.
  7. Copy the access token and replace our token with yours.

Example

Next