Add missing security type to agent request code