Get instance of the OAuth client for this provider.

def get_provider(self, provider):
        """Get instance of the OAuth client for this provider."""
        if self.provider is not None:
            return self.provider
        return providers.by_id(provider)