From 34419ede111b4d5dd89a377e3d801eac506192aa Mon Sep 17 00:00:00 2001 From: Daniel Hornung <d.hornung@indiscale.com> Date: Wed, 24 Jun 2020 14:15:51 +0200 Subject: [PATCH] DOC: More specific documentation for auth_token. --- src/caosdb/connection/authentication/unauthenticated.py | 2 +- src/caosdb/connection/connection.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/caosdb/connection/authentication/unauthenticated.py b/src/caosdb/connection/authentication/unauthenticated.py index fefa0693..70ef40e6 100644 --- a/src/caosdb/connection/authentication/unauthenticated.py +++ b/src/caosdb/connection/authentication/unauthenticated.py @@ -73,7 +73,7 @@ class Unauthenticated(AbstractAuthenticator): raise LoginFailedException("This caosdb client is configured to stay " "unauthenticated. Change your " "`password_method` and provide an " - "`auth_token` or credentials if your want " + "`auth_token` or credentials if you want " "to authenticate this client.") def logout(self): diff --git a/src/caosdb/connection/connection.py b/src/caosdb/connection/connection.py index d21f8b0c..5f8d4edd 100644 --- a/src/caosdb/connection/connection.py +++ b/src/caosdb/connection/connection.py @@ -337,7 +337,7 @@ def configure_connection(**kwargs): auth_token : str (optional) An authentication token which has been issued by the CaosDB Server. - Implies `password_method="auth_token"` if set. + Implies `password_method="auth_token"` if set. An example token string would be `["O","OneTimeAuthenticationToken","anonymous",["administration"],[],1592995200000,604800000,"3ZZ4WKRB-5I7DG2Q6-ZZE6T64P-VQ","197d0d081615c52dc18fb323c300d7be077beaad4020773bb58920b55023fa6ee49355e35754a4277b9ac525c882bcd3a22e7227ba36dfcbbdbf8f15f19d1ee9",1,30000]`. implementation : CaosDBServerConnection The class which implements the connection. (Default: -- GitLab