Configuration issues with 401 and auth