-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication credentials were not provided #10
Comments
Authentication popup's error are displayed only if your authentication knox token is expired. "DRF tokens track their creation time, but have no inbuilt mechanism for tokens expiring. Knox tokens can have an expiry configured in the app settings (default is 10 hours.)" from here. If it's the case, you must logout / log in again. Regards, |
Ok, thanks for the info but the popups are displayed immediately after I successfully authenticated!? |
Based on logs, it seems that access to the "API" is the cause of those popups: watcher | [22/Oct/2020 19:23:56] "GET /api/data_leak/alert/ HTTP/1.1" 401 58 Also, I don't see any data on dashboard (but they are present in the /admin part of the app |
Have you tried to connect with your admin account created via the "createsuperuser" command line ? |
Yes, exactly the same behavior! |
Okay I will investigate further tomorrow. |
Tx! I left the session open... and indeed after x hours, it says "Invalid token" and I've to reauthenticate. |
So is this working? Can you browse the web interface tabs and see the data ? |
No, I authenticate myself in the web interface then, I see immediately popups (cfr my 1st screenshot) and I can't see any data |
This is what I have when I try to access a page:
|
I really don't know why this happens. Try to create another user. When doing watcher | db_watcher is up, starting Watcher. |
Recreated a new environment on a spare Docker instance... Same results :( I followed carefully the documentation... Any tip to dive into the code to try to find where those "Unauthorized: /api/site_monitoring/alert/" are generated? What I did: [Edited]
|
Ok I see why the redirection happens... I will modify https://github.com/Felix83000/Watcher/blob/master/Watcher/Watcher/frontend/src/actions/SiteMonitoring.js by adding "/" and I come back to you. Thx |
I made the modification (34840fb). May you try and come back to me? Thx |
Update procedure: https://felix83000.github.io/Watcher/README.html#update-watcher |
Upgraded and it's much better! Thanks for your help! |
Describe the bug
Authentication popup's are displayed once logged in!?
To Reproduce
Steps to reproduce the behavior:
Screenshots

The text was updated successfully, but these errors were encountered: