You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #178 when introducing pay_keysend we changed from 1 permission -> 1 method to 1 permission -> multiple methods for payments.
So it no longer really makes sense to tie permissions to individual methods, but more like scopes: "invoices:read", "invoices:create", "payments:send" etc. (Also on the user side: it makes no sense for most users to differentiate between keysend and normal payments)
There is now a naming issue, because keysend payments depend on the pay_invoice permission rather than the keysend one (which does not exist)
What needs to change
AppPermission.RequestMethod (it's no longer for one request method). Maybe it can be called Scope and more like our OAuth API. e.g. payments:send
Migrate the current values of AppPermission.RequestMethod to be the new scopes e.g. invoices:create, invoices:read, payments:send etc.
Consider if it makes more sense to have a single permissions object per app (or permissions directly on the app table instead) and how to do this in a performant and flexible way - this would remove duplication on the AppPermission table (amount, created, expiry, etc. which are the same for all selected permissions). What is the best way to store the permissions?
The text was updated successfully, but these errors were encountered:
In #178 when introducing pay_keysend we changed from
1 permission -> 1 method
to1 permission -> multiple methods
for payments.So it no longer really makes sense to tie permissions to individual methods, but more like scopes: "invoices:read", "invoices:create", "payments:send" etc. (Also on the user side: it makes no sense for most users to differentiate between keysend and normal payments)
There is now a naming issue, because keysend payments depend on the pay_invoice permission rather than the keysend one (which does not exist)
What needs to change
The text was updated successfully, but these errors were encountered: