ICIJ / datashare

A self-hosted search engine for documents.
https://datashare.icij.org
GNU Affero General Public License v3.0
586 stars 52 forks source link

unable to use basic authFilter (server mode) #1255

Closed liabozarth closed 8 months ago

liabozarth commented 10 months ago

Describe the bug A clear and concise description of what the bug is.

I can successfully log-in once. But after I log out, and try to log back in, it doesn't work.

To Reproduce Steps to reproduce the behavior: part of the docker-compose.yml, added the lines --authFilter org.icij.datashare.session.BasicAuthAdaptorFilter --authUsersProvider org.icij.datashare.session.UsersInDb to original: command: >- --mode SERVER --dataDir /home/datashare/Datashare --authFilter org.icij.datashare.session.YesCookieAuthFilter --busType REDIS --batchQueueType REDIS --dataSourceUrl jdbc:postgresql://postgresql/datashare?user=datashare\&password=password --defaultProject secret-project --elasticsearchAddress http://elasticsearch:9200 --messageBusAddress redis://redis:6379 --queueType REDIS --redisAddress redis://redis:6379 --rootHost http://localhost:8080 --sessionStoreType REDIS --authFilter org.icij.datashare.session.BasicAuthAdaptorFilter --authUsersProvider org.icij.datashare.session.UsersInDb --sessionTtlSeconds 43200 --tcpListenPort 8080

Expected behavior being able to log out and log in without an issue

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): -ubuntu 20.04

Additional context Add any other context about the problem here.

(Optional) Your contact, availabilities and timezone if a video call with screensharing is needed For any private information, please consider sending an email to datashare@icij.org.

pirhoo commented 10 months ago

Hi @liabozarth, thanks for reporting the issue. Any log in the Datashare container?

liabozarth commented 10 months ago

I disabled the auth for now. I'll update this when I have a chance to test with auth again.

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 40 days with no activity.

github-actions[bot] commented 8 months ago

This issue was closed because it has been inactive for 20 days since being marked as stale.