mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-08 08:34:21 +01:00
Tracks is a GTD™ web application, built with Ruby on Rails
https://www.getontracks.org/
The auth middleware was returning JSON error messages ("No authentication token
provided") for web UI requests, which displayed as plain text in the browser.
Changes:
- Added isAPIRequest check to detect if request is for /api/* or web UI
- For web UI requests without auth: redirect to /login (HTTP 302)
- For API requests without auth: return JSON error (HTTP 401)
- Applied same logic for all auth failure scenarios (no token, invalid token,
invalid claims, user not found)
This fixes the issue where users see JSON errors in the browser instead of
being properly redirected to the login page when authentication fails.
|
||
|---|---|---|
| .github | ||
| app | ||
| bin | ||
| cmd/tracks | ||
| config | ||
| db | ||
| doc | ||
| internal | ||
| lib | ||
| log | ||
| node_modules | ||
| public | ||
| script | ||
| test | ||
| test-envs | ||
| vendor/assets | ||
| .codeclimate.yml | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .rubocop.yml | ||
| .ruby-version | ||
| .yardopts | ||
| config.ru | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| docker-compose.yml | ||
| docker-entrypoint.sh | ||
| Dockerfile | ||
| Gemfile | ||
| Gemfile.lock | ||
| go.mod | ||
| go.sum | ||
| mkdocs.yml | ||
| package-lock.json | ||
| package.json | ||
| Rakefile | ||
| README.md | ||
| README_GOLANG.md | ||
| SECURITY.md | ||
| test-login.js | ||
| test-tracks-crud.js | ||
| test_api.sh | ||
Tracks: a GTD™ compatible web application built with Ruby on Rails
About
- Project homepage: http://www.getontracks.org/
- Manual: http://www.getontracks.org/manual/
- Source at GitHub: https://github.com/TracksApp/tracks
- Hosted services: https://github.com/TracksApp/tracks/wiki/Hosted-Tracks
- Bug reports and feature requests: https://github.com/TracksApp/tracks/issues
- Mailing list: http://groups.google.com/group/TracksApp
- License: See COPYING
Full instructions for both new installations and upgrades from older installations of Tracks can be found in the wiki.
As always, make sure that you take sensible precautions and back up all your data frequently, taking particular care when you are upgrading.
Enjoy being productive!
Contributors and consulting
- Original developer: bsag (http://www.rousette.org.uk/)
- Principal maintainer: Jyri-Petteri ”ZeiP” Paloposki
(sponsored by Ardcoras oy, also available for paid consulting)
- If you want to support the maintainer's work, subscribe to the hosted version.
- Contributors: https://github.com/TracksApp/tracks/wiki/Contributors
If you are thinking about contributing towards the development of Tracks, please read /CONTRIBUTING.md for general information. Also you can find some information on development, testing and contributing on the wiki.