btcpayserver/BTCPayServer/Security/GreenField
d11n 6290b0f3bf
Admins can approve registered users (#5647)
* Users list: Cleanups

* Policies: Flip registration settings

* Policies: Add RequireUserApproval setting

* Add approval to user

* Require approval on login and for API key

* API handling

* AccountController cleanups

* Test fix

* Apply suggestions from code review

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>

* Add missing imports

* Communicate login requirements to user on account creation

* Add login requirements to basic auth handler

* Cleanups and test fix

* Encapsulate approval logic in user service and log approval changes

* Send follow up "Account approved" email

Closes #5656.

* Add notification for admins

* Fix creating a user via the admin view

* Update list: Unify flags into status column, add approve action

* Adjust "Resend email" wording

* Incorporate feedback from code review

* Remove duplicate test server policy reset

---------

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
2024-01-31 14:45:54 +09:00
..
APIKeyExtensions.cs Adapt cookie auth to work with same API permission system (#4595) 2023-03-20 10:46:46 +09:00
APIKeyRepository.cs Greenfield: Admins can create/delete API keys of any user (#4680) 2023-02-24 16:19:03 +09:00
APIKeysAuthenticationHandler.cs Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
BasicAuthenticationHandler.cs Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
GreenFieldAuthenticationOptions.cs Rename GreenField -> Greenfield 2022-01-14 13:46:04 +09:00
GreenFieldAuthorizationHandler.cs Store Custom Roles (#4940) 2023-05-26 23:49:32 +09:00
GreenFieldConstants.cs Do not crash when an invoice have an amount that is too big (#5070) 2023-06-16 10:47:58 +09:00