adding support for 2 legged
add 2 legged authentication