Access Tokens
Last updated
Last updated
User Access Tokens are the preferred way to authenticate an application or notebook to Lagrange services. You can manage your access tokens in your settings.
The External Access Tokens refers to the tokens that computing providers use to access or integrate with external services, such as chatGPT, during the execution of a task. This access token is stored in the computing provider's profile on Lagrange.
Here's a general flow of how it works:
Storing the Access Token: The Computing Provider stores the External Access Token (obtained from a service like OpenAI's chatGPT) in their Lagrange Profile under "setting/tokens", which is a part of the Lagrange Hub.
Task Assignment: The Auction Engine within the Lagrange Hub assigns a task that requires an External Access Token to the Computing Provider.
Token Retrieval: The Computing Provider retrieves the External Access Token from its Lagrange Profile.
Environment Setup: The Computing Provider loads the External Access Token into the runtime environment as an environment variable.
Task Execution: The Computing Provider executes the task using the required resources. If the task involves the external service, it accesses the service using the External Access Token.
Accessing the External Service: The External Access Token is used to authenticate the Computing Provider's requests to the External Service and gain access to the resources or capabilities needed to complete the task.
In this diagram:
The Computing Provider stores the External Access Token (obtained from a service like OpenAI's chatGPT) in their Lagrange Profile under "setting/tokens", which is a part of the Lagrange Hub.
The Auction Engine within the Lagrange Hub assigns a task that requires an External Access Token to the Computing Provider.
The Computing Provider retrieves the External Access Token from its Lagrange Profile.
The Computing Provider loads the External Access Token into the runtime environment as an environment variable.
The Computing Provider executes the task using the required resources. If the task involves the external service, it accesses the service using the External Access Token.
The External Access Token is used to authenticate the Computing Provider's requests to the External Service and gain access to the resources or capabilities needed to complete the task.
The usage of access tokens as environment variables can help ensure a secure, efficient, and flexible execution environment. This mechanism allows the computing providers to seamlessly integrate with various external services as required by their tasks, enhancing the capabilities and versatility of the Lagrange network.