jsonapi-authorization icon indicating copy to clipboard operation
jsonapi-authorization copied to clipboard

Is there a way to use different policy for API

Open deepakmahakale opened this issue 2 years ago • 1 comments

We are already using policies for our app

  • UserPolicy
  • AccountPolicy

Is there a way to use separate policies for the API resources

  • API/UserPolicy
  • API/AccountPolicy

deepakmahakale avatar Dec 06 '22 09:12 deepakmahakale

I don't know, maybe? At least overriding the authorizer is possible, so it might be possible to achieve what you're looking for by using a custom authorizer.

valscion avatar Dec 07 '22 07:12 valscion