ld-r icon indicating copy to clipboard operation
ld-r copied to clipboard

Support JWT to authenticate against GraphDB

Open NielsHoffmann opened this issue 5 years ago • 1 comments

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

  1. enable security on GraphDB
  2. 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

NielsHoffmann avatar Aug 13 '20 14:08 NielsHoffmann

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.

ali1k avatar Aug 19 '20 09:08 ali1k