auth0/v3/authentication/social.py
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://%s/oauth/access_token' % self.domain,
            data={
                'client_id': client_id,
                'access_token': access_token,
                'connection': connection,
                'scope': scope,
            },
            headers={'Content-Type': 'application/json'}
        )
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.
        
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.
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 .
def login(self, client_id, access_token, connection, scope='openid'):
        return self.post(
            'https://%s/oauth/access_token' % self.domain,
            data={
                'client_id': client_id,
                'access_token': access_token,
                'connection': connection,
                'scope': scope,
            },
            headers={'Content-Type': 'application/json'}
        )
def login ( self , client_id , access_token , connection , scope = 'openid' ) : return self . post ( 'https://%s/oauth/access_token' % self . domain , data = { 'client_id' : client_id , 'access_token' : access_token , 'connection' : connection , 'scope' : scope , } , headers = { 'Content-Type' : 'application/json' } )
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.
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 .
"""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.
        """
A dict with 'access_token' and 'id_token' keys.
A dict with ' access_token ' and ' id_token ' keys .
self
client_id
application's client id.
application ' s client id .
access_token
social provider's access_token.
social provider ' s access_token .
connection
None
scope