ali1k / ld-r

Linked Data Reactor (LD-R)
http://ld-r.org
Other
127 stars 30 forks source link

Support JWT to authenticate against GraphDB #82

Open NielsHoffmann opened 4 years ago

NielsHoffmann commented 4 years ago

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

ali1k commented 4 years ago

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.