Added PAM conf
Added intercept middleware