Authentication
How to authenticate a client with the vantage6 server
Last updated
Was this helpful?
How to authenticate a client with the vantage6 server
Last updated
Was this helpful?
This page and the following pages introduce some minimal examples for administrative tasks that you can perform with our . We start by authenticating.
To authenticate, we create a config file to store our login information. We do this so we do not have to define the server_url
, server_port
and so on every time we want to use the client. Moreover, it enables us to separate the sensitive information (login details, organization key) that you do not want to make publicly available, from other parts of the code you might write later (e.g. on submitting particular tasks) that you might want to share publicly.
Note that the organization_key
should be a filepath that points to the private key that was generated when the organization to which your login belongs was first created (see ).
Then, we connect to the vantage 6 server by initializing a Client object, and authenticating
Above, we have added verbose=True
as additional argument when creating the Client(...) object. This will print much more information that can be used to debug the issue.