Adding authentication support to widgets