API access with client credentials (core functionality) (#16817)

* First stab

* Delivery API client credentials + a little refactor to ensure unique client IDs

* Introduce user type

* Support user type in the Management API

* Clean up TODOs

* Update API user last login date when issuing a token

* Better error reporting for mismatched user types

* Do not allow password change or reset for API users

* Update OpenApi.json

* Revert change

* Remove obsolete comment

* Make applicable classes abstract or sealed

* Review changes

* Add endpoint for retrieving all user client IDs
This commit is contained in:
Kenn Jacobsen
2024-07-29 14:34:11 +02:00
committed by GitHub
parent 0eef280a20
commit 68db079700
53 changed files with 1444 additions and 15 deletions

View File

@@ -141,6 +141,7 @@ public class BackOfficeUserStore :
StartMediaIds = user.StartMediaIds ?? new int[] { },
IsLockedOut = user.IsLockedOut,
Key = user.Key,
Type = user.Type
};