comunica / jQuery-Widget.js

🖼 A jQuery widget to query heterogeneous interfaces using Comunica SPARQL
http://query.linkeddatafragments.org/
MIT License
18 stars 35 forks source link

Website does not work with DBpedia fragments after login to Solid authentication #126

Open jeswr opened 2 years ago

jeswr commented 2 years ago

This is because after logging in; we all fetch calls we make are authenticated fetch calls. When really we should only be making authenticated fetch calls to authenticated endpoints.

Instead what fetch needs to do is try unauthenticated fetch, and on 401 figure out what to do (i.e. should it try with authenticated fetch).

We were just encountering this issue on comunica.dev - not sure if this is a new bug since https://github.com/comunica/comunica/pull/1056/files