Class Auth
Methods that related to authentication. A complete list can be found here: https://app.cryptolens.io/docs/api/v3/Auth
Inherited Members
Namespace: SKMV3Methods
Assembly: Cryptolens.Licensing.CrossPlatform.dll
Syntax
public class Auth
Methods
| Improve this Doc View SourceKeyLock(string, KeyLockModel)
This method will, given a license key, generate a new access token that is locked to that particular key and return the Id of that key. The scope of the access token is preserved (i.e. all methods that were enabled in the access token used to access this method will be copied to the new access token) except for the key lock, which is going to be changed to the id of the license key. Note, for this method to work, the access token used to access this method has to have key lock set to -1. All of these details are described in Remarks.
Declaration
public static KeyLockResult KeyLock(string token, KeyLockModel parameters)
Parameters
Type | Name | Description |
---|---|---|
string | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
KeyLockModel | parameters | The parameters that the method needs |
Returns
Type | Description |
---|---|
KeyLockResult | Returns KeyLockResult or null. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/KeyLock