nexus icon indicating copy to clipboard operation
nexus copied to clipboard

Authorize plugin should expose `optional` settings

Open malekjaroslav opened this issue 4 years ago • 2 comments

It would be great if fieldAuthorizePlugin exposed the optional settings. That ways user can decide if authorize field is required or not.

fieldAuthorizePlugin({
   optional: false
})

malekjaroslav avatar Jun 11 '20 04:06 malekjaroslav

I'm just experimenting with fieldAuthorizePlugin, and just found this issue. What kind of issue do you get with this plugin?

I didn't get any complaint saying the authorize field is required.

filoscoder avatar Sep 08 '20 12:09 filoscoder

@filoscoder that's exactly the point - it would be nice to make it required. It's easy to forget to add this on a few field, inadvertently exposing it, which would be a security issue.

Dremora avatar Nov 01 '21 20:11 Dremora