You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to support User JWT Token-based authentication for a database connection. The benefit is that the python-arango client would not need to know any username/password credentials, and a user does not need the superuser access that the current superuser_token argument supports. This does come with added responsibility for a user authenticating this way since there is no guarantee that the token is still valid.
For example, loading a JWT from environment variables:
fromarangoimportArangoClientimportos# Initialize the ArangoDB client.client=ArangoClient()
# get user JWTtoken=os.environ["ARANGODB_USER_JWT"]
# Connect to "test" database as a user using the token.db=client.db('test', user_token=token)
The text was updated successfully, but these errors were encountered:
It would be great to support User JWT Token-based authentication for a database connection. The benefit is that the python-arango client would not need to know any username/password credentials, and a user does not need the superuser access that the current
superuser_token
argument supports. This does come with added responsibility for a user authenticating this way since there is no guarantee that the token is still valid.For example, loading a JWT from environment variables:
The text was updated successfully, but these errors were encountered: