Skip to content
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

Support JWT to authenticate against GraphDB #82

Open
NielsHoffmann opened this issue Aug 13, 2020 · 1 comment
Open

Support JWT to authenticate against GraphDB #82

NielsHoffmann opened this issue Aug 13, 2020 · 1 comment

Comments

@NielsHoffmann
Copy link
Contributor

NielsHoffmann commented Aug 13, 2020

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
@ali1k
Copy link
Owner

ali1k commented Aug 19, 2020

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.

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

No branches or pull requests

2 participants