Commit graph

18 commits

Author SHA1 Message Date
Lance Edgar
f913ed8332 Expose, honor the prevent_password_change flag for Users 2023-05-02 19:13:28 -05:00
Lance Edgar
bc51a868ce Consolidate master API view logic
also let all API views use new config defaults convention
2022-08-14 00:59:35 -05:00
Lance Edgar
3edbe96968 Some API tweaks to support a byjove app 2022-08-09 14:37:41 -05:00
Lance Edgar
a0bb481a43 Use AuthHandler.get_permissions()
instead of deprecated `cache_permissions()`
2022-01-03 15:34:00 -06:00
Lance Edgar
232a02b944 Refactor to leverage all existing methods of auth handler
instead of importing and calling functions from core rattail
2021-10-14 23:30:26 -04:00
Lance Edgar
0e46b25f6e Use Cornice when registering all "service" API views
pretty sure we'll get *something* for "free" if we do it their way
2020-03-01 17:31:54 -06:00
Lance Edgar
c96ab426a4 Return new user permissions when logging in via API 2020-02-21 12:36:11 -06:00
Lance Edgar
5e028ce547 Add API view for changing current user password 2020-02-12 17:32:18 -06:00
Lance Edgar
c95008703c Add common get_user_info() method for all API views 2020-02-11 13:31:02 -06:00
Lance Edgar
a6f80e07e0 Add way to prevent user login via API, per custom logic 2020-02-10 15:43:10 -06:00
Lance Edgar
5faced8d22 Tweak how default config is defined for auth API views
so it may be more easily extended
2020-02-10 14:13:50 -06:00
Lance Edgar
6c029382d9 Add API views for admin user to become / stop being "root" 2019-11-26 16:42:27 -06:00
Lance Edgar
31ae68f96e Allow override of user authentication logic for API 2019-11-26 15:28:03 -06:00
Lance Edgar
d256e2014a Provide background color when first checking API session 2019-11-15 16:16:59 -06:00
Lance Edgar
de46dfc4a2 Return current user permissions when session is checked via API 2019-08-30 00:27:00 -05:00
Lance Edgar
7c0d9c4f93 Include short_name in field list returned by /session API 2019-08-24 20:35:56 -05:00
Lance Edgar
fec8ba28e2 Refactor API views a bit for sake of running as separate service
also add "proper" (sic) permission checks
2018-11-03 18:55:26 -05:00
Lance Edgar
f43b6db427 Add initial tailbone.api subpackage, with basic auth API views
lots more to do here! but hopefully this is a solid start
2018-10-27 15:17:48 -05:00