Provides a generic implementation of the authentication service.