Authentication and API tokens
Access to data in QDL requires authentication. A user can provide authentication in two different ways; authenticating via logging into QDL with your institutional account, or using an API token.
Authentication using your institutional account
Every user of QDL has an institutional account which QDL can verify, e.g. a TU Delft account. Using the QDL CLI, a user can log in and will be directed to authenticate via the institutional login page. After logging in successfully, your device will have obtained an access token from the QDL authentication system. An access token is valid for a limited amount of time. Subsequently, the access token can be used by the SDK and QDL daemon.
API Token authentication
Access tokens expire after a certain amount of time. However, experiments or simulations can run longer than this expiration time. When the access token expires, data cannot be uploaded to QDL, which is of course an undesirable situation. To this end, an API token can be created by the logged-in user, which to QDL represents the user who created the API token. An API token does not expire, but is not privileged to manage users, schemas or scopes. After the API token has been created, the API token needs to be stored locally, as the value of the API token can not be retrieved anymore. Note that API tokens are like passwords and are strictly personal. Please do not share API tokens through insecure communication. API tokens can be revoked and regenerated if necessary. A user is allowed to create (a limited number of) multiple API tokens, so they can use a different one for different purposes.