rawgraphs-app icon indicating copy to clipboard operation
rawgraphs-app copied to clipboard

Send CORS requests to SPARQL endpoint with credentials

Open jaw111 opened this issue 3 years ago • 0 comments

In which part of the interface would this feature applies?

[x] 1. Load your data [ ] 2. Choose a chart [ ] 3. Mapping [ ] 4. Customize [ ] 5. Export

Is your feature request related to a problem? Please describe.

I'm trying to load data from a private SPARQL endpoint, but the request from RAWGraphs is not correctly authenticated and the endpoint responds with a 401 Authorization Required status. I am already authenticated against the endpoint and have a session token set in my cookies, but those are not sent on cross-origin requests from RAWGraphs.

Describe the solution you'd like

Include send user credentials (cookies, basic http auth, etc..) for cross-origin calls from RAWGraphs.

Describe alternatives you've considered

  1. Add additional options in RAWGraphs UI where user can enter HTTP Basic credentials and use those to authenticate the request
  2. If the SPARQL endpoint gives a 401 response, then prompt user to enter credentials

Additional context

n/a

jaw111 avatar Feb 24 '22 09:02 jaw111