In the coypu project, we need to fetch data from graphs which are in SPARQL endpoints secured with OAUTH2 (client credential flow).
Given an available token, which is provided via an environment variable (e.g. RDFUNIT_BEARER_TOKEN), the expected behaviour of this feature is, that rdfunit uses this token to provide authentication to the endpoint.
This is basically as easy as adding the following header to all HTTP requests to the SPARQL endpoint:
Expected Behavior
In the coypu project, we need to fetch data from graphs which are in SPARQL endpoints secured with OAUTH2 (client credential flow).
Given an available token, which is provided via an environment variable (e.g.
RDFUNIT_BEARER_TOKEN
), the expected behaviour of this feature is, that rdfunit uses this token to provide authentication to the endpoint.This is basically as easy as adding the following header to all HTTP requests to the SPARQL endpoint:
Reference: https://www.rfc-editor.org/rfc/rfc6750#section-2
Actual Behavior
rdfunit is not able to use token based authentication on endpoints
Test Environment
Given the following cmemc config, you can fetch a token as follows with cmemc.
Team
@Aklakan will implement this @mgns @rpietzsch and @seebi are happy to test this and provide feedback
What this request is not about
This request is not about how this token fetched from an identity provider. Assuming the token is available is ok.