Skip to content

Authenticate using User JWT-Token #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
geenen124 opened this issue Dec 13, 2022 · 1 comment · Fixed by #293
Closed

Authenticate using User JWT-Token #238

geenen124 opened this issue Dec 13, 2022 · 1 comment · Fixed by #293

Comments

@geenen124
Copy link
Contributor

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:

from arango import ArangoClient
import os

# Initialize the ArangoDB client.
client = ArangoClient()

# get user JWT
token = os.environ["ARANGODB_USER_JWT"]

# Connect to "test" database as a user using the token.
db = client.db('test', user_token=token)
@CryptoNinjaGeek
Copy link
Contributor

Hi @geenen124

The request has been added to our backlog and will be prioritized for a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants