In all of the code examples, you will see variables such as
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:
- Go to ‘Your account name’ (right corner) > ‘Access Token’.
- Click on ‘Create new Access Token’. You will now be on this page.
- Enter a name, such as “ActivateToken”.
- Check the ‘Activate’ box (under LicenseKey)
- Select the ‘Product Lock’ to be the name of your application.
- Press ‘Create an Access Token’.
- Copy the access token and replace our token with yours.