Catch method's which needs authentication

hello ,
I want to catch requested method that needs authentication, as of now its done with loginRedirect url and method are not allowed with deny, here the problem is it redirects to login page which is correct, i want to open overlay/ login Modal, without redirect , so i am looking forward to get some replies,I repeat, I want to catch such method which are denied in Controller method in