Apparently this command bypasses the GUI authorization check:
sudo security authorizationdb write com.apple.trust-settings.admin allow
Topic:
Code Signing
SubTopic:
Entitlements
Tags: