Pēteris Caune
f8131741ef
Fix minor API inconsistencies
1. Drop API support for GET, DELETE requests with a request body.
Healthchecks had an undocumented quirk where you could authenticate a
GET or DELETE request by putting a '{"api_key":"..."}' in request body.
This commit removes this feature.
Note: POST requests can still authenticate either by sending
a X-Api-Key header, or by putting a "api_key" key in request body.
GET and DELETE requests can now only authenticate with the
request header.
2. Add missing @csrf_exempt annotations in API views
When client sends a HTTP POST request to a GET-only endpoint,
the server is supposed to respond with "405 Method Not Allowed".
Due to CSRF checking, a couple endpoints were responding with
"403 Forbidden" instead. Adding @csrf_exempt annotations fixes
the problem.
3 years ago
Pēteris Caune
688aa5b3c3
Implement hc.api.views.ping_by_slug
3 years ago
swoga
9640d2242f
feat: add manager role
3 years ago
Pēteris Caune
ed6b15bfa9
Update the "Set Password" function to use confirmation codes
4 years ago
Pēteris Caune
155a1f132b
Simplify super() calls in tests
4 years ago
Pēteris Caune
0a85c5ed12
In Account Settings > My Projects, indicate read-only memberships as read-only
4 years ago
Pēteris Caune
f7acaa57af
Adding tests.
5 years ago
Pēteris Caune
0c9c453ea0
Profile.current_project not used any more, remove last remaining references. cc: #336
5 years ago
Pēteris Caune
bb808852d9
Reduce usage of request.project cc: #336
5 years ago
Pēteris Caune
59f5b7a5f5
Project code in URL for the "Add Webhook" page. cc: #336
5 years ago
Pēteris Caune
cdfc9840a7
Source formatted with Black
6 years ago
Pēteris Caune
069bc9b735
Test cases for adding project, removing project and leaving project.
6 years ago
Pēteris Caune
8dd91b247b
When user has no projects, don't auto-create a project.
6 years ago
Pēteris Caune
d52d292889
Remove Member.team_id (use Member.project_id instead)
6 years ago
Pēteris Caune
664aad916a
Remove Profile.team_name (use Project.name instead) and Profile.current_team (use Profile.current_project instead)
6 years ago
Pēteris Caune
c08f02ab7f
Drop Profile.api_key and Profile.api_key_readonly (both are stored with Project now)
6 years ago
Pēteris Caune
b5df5b3c6e
Project.badge_key must be not null and unique.
6 years ago
Pēteris Caune
6b7f212c8a
Use the api keys from project, not user profile
6 years ago
Pēteris Caune
1c69cf7f89
Project model. cc: #183
6 years ago
Pēteris Caune
182f9e1109
Refactor API key checking code
6 years ago
Pēteris Caune
0723476a0c
All plans now have team access, but different team size limits.
7 years ago
Pēteris Caune
5f2da08d7e
Per-profile, per-month counters of sent SMS messages.
7 years ago
Pēteris Caune
207b0f9048
Adding on_delete keywords, more to come.
8 years ago
Pēteris Caune
813c316888
Access rights checks for team access stuff in profile page.
9 years ago
Pēteris Caune
feb2294a7e
Tests for team access.
9 years ago
Pēteris Caune
fdf9c607e5
Team Access, test cleanup
9 years ago
Di Wu
fe72792fd2
use basetestcase for most test cases that require predefined user, add test for ensuretriggers, add travis cache
9 years ago