Setup authorization and authentication