web3.storage icon indicating copy to clipboard operation
web3.storage copied to clipboard

research: How to do feature switch for payment settings

Open gobengo opened this issue 2 years ago • 1 comments

We want to enable a good way of doing authz checks per user (i.e. feature toggles)

Example requirements:

  • if I access this page while not logged in, I get a 401 response status code
  • if I access this page while logged in but without the feature switch enabled for my account, I get a 403 response status code
  • if I access this page while not logged in, I get a 401 response status code
  • this page should only be available behind a user feature switch, so that we can safely deploy our progress at end of sprint and enable the functionality only for test users
  • we have a path forward for devs to use this feature switch in other conditionals (e.g. api processing)

gobengo avatar Aug 15 '22 20:08 gobengo

for now we aren't blocked on this just to start ui prototyping work. once we have real user data though, urls like this can't be allowed to resolve (with user data):

  • https://9cb13d59.web3-storage-staging.pages.dev/account/payment/
  • https://staging.web3.storage/account/payment/

gobengo avatar Aug 17 '22 01:08 gobengo