Any pilot refusing to comply with any reasonable security request should be disciplined and on a repeat offence dismissed. The only area of question is the reasonable nature of the request. They should be correctly subject to at least the same screening as passengers.