KNowledgeOnWebScale / solid-authentication-browser-extension

10 stars 1 forks source link

Catch 401 unauthorized instead of forcing headers on every request #10

Closed axellorreyne closed 1 year ago

axellorreyne commented 1 year ago

Instead of pushing headers containing authentication parameters on every request, the extension should catch unauthorized request (returning a 401 status code) and refetch on this url containing the correct headers.

pheyvaer commented 1 year ago

When I try to access an resource for which I have to be logged in I get a 401, not a 403. Can you give an example where you get a 403?

We get a 403 when logged in but don't have the right permissions.

axellorreyne commented 1 year ago

This was indeed a typo, I meant to reference 401 (Unauthorized) instead of 403 (Forbidden).