class-e
I had a similar situation where a superior undermined my authority in front of a group of subordinates.
I took said person away from view, shirt fronted him and said "Don't you ever embarrass me in front of the others like that again".
After he cleaned his strides, I never had another problem with him again.
May not work or be appropriate in all circumstances but it certainly shows the other person you will not be walked over.