Implement authentication and provider getter.