auth0/v3/authentication/database.py
def login(self, client_id, username, password, connection, id_token=None,
              grant_type='password', device=None, scope='openid'):
        """Login using username and password

        Given the user credentials and the connection specified, it will do
        the authentication on the provider and return a dict with the
        access_token and id_token. This endpoint only works for database
        connections, passwordless connections, Active Directory/LDAP,
        Windows Azure AD and ADFS.
        """
        warnings.warn("/oauth/ro will be deprecated in future releases", DeprecationWarning)
        return self.post(
            'https://%s/oauth/ro' % self.domain,
            data={
                'client_id': client_id,
                'username': username,
                'password': password,
                'id_token': id_token,
                'connection': connection,
                'device': device,
                'grant_type': grant_type,
                'scope': scope,
            },
            headers={'Content-Type': 'application/json'}
        )
Login using username and password

        Given the user credentials and the connection specified, it will do
        the authentication on the provider and return a dict with the
        access_token and id_token. This endpoint only works for database
        connections, passwordless connections, Active Directory/LDAP,
        Windows Azure AD and ADFS.
        
Login using username and password
Given the user credentials and the connection specified, it will do
the authentication on the provider and return a dict with the
access_token and id_token. This endpoint only works for database
connections, passwordless connections, Active Directory/LDAP,
Windows Azure AD and ADFS.
Login using username and password Given the user credentials and the connection specified it will do the authentication on the provider and return a dict with the access_token and id_token . This endpoint only works for database connections passwordless connections Active Directory / LDAP Windows Azure AD and ADFS .
def login(self, client_id, username, password, connection, id_token=None,
              grant_type='password', device=None, scope='openid'):
        warnings.warn("/oauth/ro will be deprecated in future releases", DeprecationWarning)
        return self.post(
            'https://%s/oauth/ro' % self.domain,
            data={
                'client_id': client_id,
                'username': username,
                'password': password,
                'id_token': id_token,
                'connection': connection,
                'device': device,
                'grant_type': grant_type,
                'scope': scope,
            },
            headers={'Content-Type': 'application/json'}
        )
def login ( self , client_id , username , password , connection , id_token = None , grant_type = 'password' , device = None , scope = 'openid' ) : warnings . warn ( "/oauth/ro will be deprecated in future releases" , DeprecationWarning ) return self . post ( 'https://%s/oauth/ro' % self . domain , data = { 'client_id' : client_id , 'username' : username , 'password' : password , 'id_token' : id_token , 'connection' : connection , 'device' : device , 'grant_type' : grant_type , 'scope' : scope , } , headers = { 'Content-Type' : 'application/json' } )
Login using username and password
Given the user credentials 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 username and password Given the user credentials 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 username and password

        Given the user credentials and the connection specified, it will do
        the authentication on the provider and return a dict with the
        access_token and id_token. This endpoint only works for database
        connections, passwordless connections, Active Directory/LDAP,
        Windows Azure AD and ADFS.
        """
self
client_id
username
password
connection
id_token
grant_type
device
scope