Use Python with Stardog - Stardog

Can i have an example on how to connect to a Kerberos authenticated Stardog instance using 'pystardog'.
All the examples i could find are using username:password combinations.

Thanks,

Hi Vishal,

As it stands now, pystardog does not support Kerberos. Pystardog relies on the requests library [1], specifically the requests.session object

  • it authenticates via session.auth, which implements a basic HTTP authentication as per [2].
    At the moment, adding Kerberos authentication to Pystardog is not something the team is actively working on.

Best,
Noah

[1] pystardog/client.py at master · stardog-union/pystardog · GitHub
[2] requests.sessions — Requests 2.28.1 documentation

Thanks for the update Noah.
Appreciate your quick response.

You might have some luck with integrating this library GitHub - requests/requests-kerberos: An authentication handler for using Kerberos with Python Requests.