nicolas.dorier
29a807696b
Refactor permissions of GreenField
2020-03-19 23:43:51 +09:00
Kukks
e99767c7e2
Greenfield API: Create User
...
Slightly big PR because I started refactoring to reduce code duplication between the UI based business logic and the api one.
2020-03-17 08:21:27 +01:00
Kukks
8173296c96
Greenfield API: Get current User
...
Builds on #1368
This PR adds a new endpoint: Get current user.. It only returns the current user's id and email for now( let's extend later)
It also adds a new permission: `ProfileManagement` which is needed for this endpoint (and for update endpoints later)
2020-03-12 14:59:24 +01:00
Andrew Camilleri
fa51180dfa
Api keys with openiddict ( #1262 )
...
* Remove OpenIddict
* Add API Key system
* Revert removing OpenIddict
* fix rebase
* fix tests
* pr changes
* fix tests
* fix apikey test
* pr change
* fix db
* add migration attrs
* fix migration error
* PR Changes
* Fix sqlite migration
* change api key to use Authorization Header
* add supportAddForeignKey
* use tempdata status message
* fix add api key css
* remove redirect url + app identifier feature :(
2020-02-24 22:36:15 +09:00
nicolas.dorier
eac4c91820
Move Bitpay authentication class in BTCPayServer.Security
2019-10-19 00:54:20 +09:00
nicolas.dorier
da2e8665a1
Remove unused scope, assert policy on store listing
2019-10-18 23:42:06 +09:00
nicolas.dorier
281a2461ad
Refactor authorizations
2019-10-14 00:24:41 +09:00
Andrew Camilleri
ef9c2e8af1
Part2: Openiddict: Init OpenIddict & Database Migration & Auth Policies ( #567 )
...
* Part 1: OpenIddict - Minor Changes & Config prep
* Part 1: OpenIddict - Minor Changes & Config prep
* Part2: Openiddict: Init OpenIddict & Database Migration & Auth Policies
* pr changes
* pr changes
* fix merge
* pr fixes
* remove config for openid -- no need for it for now
* fix compile
* fix compile #2
* remove extra ns using
* Update Startup.cs
* compile
* adjust settings a bit
* remove duplicate
* remove external login provider placeholder html
* remove unused directives
* regenerate db snapshot model
* Remove dynamic policy
2019-05-24 15:17:02 +09:00
nicolas.dorier
fed53661b3
Add btcpay.store.cancreateinvoice claim, and use that for the store
2018-09-08 14:53:41 +09:00
nicolas.dorier
01cf579530
Use proper custom authentication handler for bitpay
2018-06-04 12:00:03 +09:00
nicolas.dorier
21bbf49640
Rewrite authorization enforcement and simplify the code
2018-04-30 22:00:43 +09:00
nicolas.dorier
1fc9a1a54b
Move to a Claim based security
2018-04-30 02:33:42 +09:00