added 3P auth directive and controller