Documentation Index
Fetch the complete documentation index at: https://help.cryptolens.io/llms.txt
Use this file to discover all available pages before exploring further.
This article is a draft and is continuously being updated.
Instead of authenticating users using their license key, which was described in the key verification tutorial, you can authenticate them using their username and password. This can be preferred in the following use cases:
- When your customers have multiple licenses.
- When your service offers a web-version and a desktop version.
Getting started
You can read more about all the methods that are available in the Web API documentation. The goal of this tutorial is to focus on the authentication method that retrieves all licenses that belong to a user. To authenticate the user inside your application, we can use the code below. WhenLogin method is called, it will return all the licenses that belong to your customer (assuming that the User is linked to a Customer in Cryptolens).
The code examples below require an access token with either UserAuthNormal or UserAuthAdmin permission. When running the code inside your application, please assign the access token UserAuthNormal permission only.