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 authentication #29

Open
mgns opened this issue Oct 2, 2019 · 2 comments
Open

Support authentication #29

mgns opened this issue Oct 2, 2019 · 2 comments

Comments

@mgns
Copy link

mgns commented Oct 2, 2019

Some SPARQL endpoints demand authorization. Would it make sense to create a decorator that handles various authentication methods, e.g. API Key, Bearer Token, Basic Auth, OAuth 1.0 / 2.0?

@Aklakan
Copy link
Member

Aklakan commented Jun 21, 2021

QueryExecutionFactoryHttp supports passing a commons HttpClient instance which can be configured to inject the necessary oauth headers into http requests.
There was a recent request to add this feature in order to allow RDFUnit connect to a SPARQL endpoint with oauth access.

I am not sure whether it is necessary to add authentication code to this project or whether it is sufficient to just support operating on top of some other mechanism as it has been done with HttpClient.

@jimkont
Copy link
Contributor

jimkont commented Jun 23, 2021

Adding a simple constructor that support Basic Auth should cover most of the authentication use cases imho, the rest could pass a correctly configured HttpClient

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

No branches or pull requests

3 participants