ld-r
ld-r copied to clipboard
Support JWT to authenticate against GraphDB
Expected Behavior
I want to connect to a secured GraphDB (version 9.3.3) instance from ld-r. The GraphDB instance will hold both the user configuration and dataset triples (in a separate repo)
Actual Behavior
The documentation states I can provide a username/password combination in the server.js. Graphdb supports JWT. So I would like to upgrade to a more secure authentication method.
Steps to Reproduce the Problem
- enable security on GraphDB
- provide username, password parameters in server.js file ~~3. observe that there is no connection...~~ username/password combination is visible in network traffic...
Specifications
- Version: graphDB 9.3.3, ld-r current git master
- Platform: ubuntu 18.04 LTS
Hi @NielsHoffmann you can customise the parameters per triple store. For GraphDB, the config can be found at https://github.com/ali1k/ld-r/blob/master/services/utils/helpers.js#L170 just add the JWT as an optional parameter there and customise the URL/parameters for the GET/POST request.