Adrià Casajús
5d48b5878f
Restrict cookie usage on api endpoints ( #2151 )
2024-07-10 10:48:46 +00:00
Adrià Casajús
173ae6a221
Allow to soft-delete users ( #2034 )
...
* Allow the possibility of soft-deleting users
* Unschedule for delete after link
* Add dry run to the cron
2024-02-22 17:38:34 +01:00
Adrià Casajús
de31e6d072
Allow to set sudo mode for api requests ( #1108 )
...
* Allow to set sudo mode for api requests
* Rebase migration on top of master
* PR comments
* Added missing migration
* Removed unused import
* Apply suggestions from code review
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-06-23 14:26:36 +02:00
Son
7b7cb0b571
prevent disabled user from using the api
2022-04-27 16:24:38 +02:00
Son
372466ab06
do not use flask-sqlalchemy
...
- add __tablename__ for all models
- use sa and orm instead of db
- rollback all changes in tests
- remove session in @app.teardown_appcontext
2021-10-12 14:36:47 +02:00
Son NK
ed22f5116f
fix api key counter not correctly incremented
2020-08-01 10:14:59 +02:00
Son NK
6fc380c0d9
remove unused imports
2020-05-23 19:18:35 +02:00
Sibren Vasse
2d7bd225e9
Move api error handling to global error handler
2020-05-17 15:27:24 +02:00
Son NK
ee19957d5d
Add 405 error
2020-05-13 23:28:00 +02:00
Son NK
5c8c741a6a
API Error handling for 404 and 500
2020-05-13 22:02:38 +02:00
Son NK
ca6350cc27
optimize import in all files
2020-04-25 13:49:39 +02:00
Son NK
48202e905f
rename verify_api_key -> require_api_auth
2020-04-25 13:42:53 +02:00
Son NK
78e94da08c
support user already authenticated in verify_api_key
2020-04-25 13:42:53 +02:00
Son NK
ab4f5bf329
add /api/alias/options
2019-12-15 18:55:16 +02:00
Son NK
6c4a173de5
create /api/alias/new using api-key as authentication
2019-12-15 18:55:16 +02:00