-
-
Notifications
You must be signed in to change notification settings - Fork 613
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
REST-API Calls always returning 302 redirect to login page #1169
Comments
try using the official demo with |
The official demo works. So I guess it must be something with apache / htaccess setup (although I use the default ones without modification). Anything I can check on my end? Maybe the issue is the "public" folder in my URL? |
I don't think its the public folder (even though this is a bad idea, I hope you don't run it like that in production. |
No of course it is just a dev setup for me - I want to update my app to support Kimai2 as well. I tried it with your only version and I get a 402 error if password ist wrong, in my case I receive the 302 Redirect error. Any way I can turn on route debugging or something like that so I can see which routes matches my request? |
Is nothing in your var/log/dev.log ? |
I have excatly the same problem. All requests to the api using the header are redirected to the login page. The Headers and password are correct. The demo works with the same request configuration.
Apache is configured with alias /kimai/ pointing to public - directory, AllowOverride All is enabled. |
Thanks @pkaltenboeck the log was very helpful! with this:
Background: the token authenticator just started working, when the URI started with |
No problem, with the proposed changes it works fine. If I just would not have been so lazy for creating an own (sub-)domain 😅. |
Merged to master, will be shipped with 1.5 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai. |
Describe the bug
All calls to the REST-API return a 302 status code with redirect to the login page
To Reproduce
Steps to reproduce the behavior:
Logfile
I removed the URL information by intention. Log files are all empty and show no error.
The text was updated successfully, but these errors were encountered: