palkan/action_policy-graphql

Using authorized_scope with authorize

alexander37137 opened this issue · 3 comments

Why i cant use authorized_scope with authorize in query type?

I want to define minimal requirements for using api using authorize and use scoping for filtering data

Right, currently, it's not possible to pass both options (we will revisit this behavior).

You can define authorized_scope in the field definition and do authorize! manually (as described here #6 (comment)).

Closing this in favor of #9