ontodia icon indicating copy to clipboard operation
ontodia copied to clipboard

Password protected SPARQL endpoints

Open semanticfire opened this issue 6 years ago • 1 comments

how should I configure a password protected endpoint?

semanticfire avatar Jan 29 '19 08:01 semanticfire

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 }}

yuricus avatar Feb 27 '19 12:02 yuricus