<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def login(self, client_id, access_token, connection, scope='openid'):
 """Login using a social provider's access token Given the social provider's access_token and the connection specified, it will do the authentication on the provider and return a dict with the access_token and id_token. Currently, this endpoint only works for Facebook, Google, Twitter and Weibo. Args: client_id (str):
 application's client id. access_token (str):
 social provider's access_token. connection (str):
 connection type (e.g: 'facebook') Returns: A dict with 'access_token' and 'id_token' keys. """


        return self.post(
            'https://{}/oauth/access_token'.format(self.domain),
            data={
                'client_id': client_id,
                'access_token': access_token,
                'connection': connection,
                'scope': scope,
            },
            headers={'Content-Type': 'application/json'}
        )