libsql / sqld

LibSQL with extended capabilities like HTTP protocol, replication, and more.
https://libsql.org
903 stars 38 forks source link

Enable per-namespace authentication #685

Closed MarinPostma closed 1 year ago

MarinPostma commented 1 year ago

This PR enables per-name authentication.

The queried namespace is compared with the id claim in the JWT to decide whether the user can access the namespace. If they don't, the namespace is reported as non-existing.