ontodia
ontodia copied to clipboard
Password protected SPARQL endpoints
how should I configure a password protected endpoint?
To access password-protected endpoint, you should pass your own queryFunction in constructor of SparqlDataProvider, see default implementation in sparqlDataProvider.ts - queryInternal(), you will need to pass authentication header along with the HTTP request.
const queryFunction: QueryFunction = … new SparqlDataProvider(options: { queryFunction }}