auth0/v3/authentication/get_token.py
def client_credentials(self, client_id, client_secret, audience,
                           grant_type='client_credentials'):
        """Client credentials grant

        This is the OAuth 2.0 grant that server processes utilize in
        order to access an API. Use this endpoint to directly request
        an access_token by using the Application Credentials (a Client Id and
        a Client Secret).

        Args:
            grant_type (str): Denotes the flow you're using. For client credentials
            use client_credentials

            client_id (str): your application's client Id

            client_secret (str): your application's client Secret

            audience (str): The unique identifier of the target API you want to access.

        Returns:
            access_token
        """

        return self.post(
            'https://%s/oauth/token' % self.domain,
            data={
                'client_id': client_id,
                'client_secret': client_secret,
                'audience': audience,
                'grant_type': grant_type,
            },
            headers={'Content-Type': 'application/json'}
        )
Client credentials grant

        This is the OAuth 2.0 grant that server processes utilize in
        order to access an API. Use this endpoint to directly request
        an access_token by using the Application Credentials (a Client Id and
        a Client Secret).

        Args:
            grant_type (str): Denotes the flow you're using. For client credentials
            use client_credentials

            client_id (str): your application's client Id

            client_secret (str): your application's client Secret

            audience (str): The unique identifier of the target API you want to access.

        Returns:
            access_token
        
Client credentials grant
This is the OAuth 2.0 grant that server processes utilize in
order to access an API. Use this endpoint to directly request
an access_token by using the Application Credentials (a Client Id and
a Client Secret).

grant_type (str): Denotes the flow you're using. For client credentials
use client_credentials

client_id (str): your application's client Id

client_secret (str): your application's client Secret

audience (str): The unique identifier of the target API you want to access.


Client credentials grant This is the OAuth 2 . 0 grant that server processes utilize in order to access an API . Use this endpoint to directly request an access_token by using the Application Credentials ( a Client Id and a Client Secret ) . grant_type ( str ) : Denotes the flow you ' re using . For client credentials use client_credentials client_id ( str ) : your application ' s client Id client_secret ( str ) : your application ' s client Secret audience ( str ) : The unique identifier of the target API you want to access .
def client_credentials(self, client_id, client_secret, audience,
                           grant_type='client_credentials'):
        return self.post(
            'https://%s/oauth/token' % self.domain,
            data={
                'client_id': client_id,
                'client_secret': client_secret,
                'audience': audience,
                'grant_type': grant_type,
            },
            headers={'Content-Type': 'application/json'}
        )
def client_credentials ( self , client_id , client_secret , audience , grant_type = 'client_credentials' ) : return self . post ( 'https://%s/oauth/token' % self . domain , data = { 'client_id' : client_id , 'client_secret' : client_secret , 'audience' : audience , 'grant_type' : grant_type , } , headers = { 'Content-Type' : 'application/json' } )
Client credentials grant
This is the OAuth 2.0 grant that server processes utilize in
order to access an API.
Client credentials grant This is the OAuth 2 . 0 grant that server processes utilize in order to access an API .
"""Client credentials grant

        This is the OAuth 2.0 grant that server processes utilize in
        order to access an API. Use this endpoint to directly request
        an access_token by using the Application Credentials (a Client Id and
        a Client Secret).

        Args:
            grant_type (str): Denotes the flow you're using. For client credentials
            use client_credentials

            client_id (str): your application's client Id

            client_secret (str): your application's client Secret

            audience (str): The unique identifier of the target API you want to access.

        Returns:
            access_token
        """
self
client_id
client_secret
audience
grant_type