Basic with Redis
Basic authentication with Redis
Last updated
Basic authentication with Redis
Last updated
Datashare is an open source project by the International Consortium of Investigative Journalists
Basic authentication is a simple protocol that uses the HTTP headers and the browser to authenticate users. User credentials are sent to the server in the header Authorization
with user:password
base64 encoded:
It is secure as long as the communication to the server is encrypted (with SSL
for example).
On the server side, you have to provide a user store for Datashare. For now we are using a Redis data store.
So you have to provision users. The passwords are sha256 hex
encoded. For example using bash
:
Then insert the user like this in Redis:
If you use other indices, you'll have to include them in the group_by_applications
, but local-datashare
should remain. For exammple if you use myindex
:
Then you should see this popup:
Here is an example of launching Datashare with Docker and the basic auth provider filter backed in Redis: