Open kevinquillen opened 1 year ago
Can you please check following setting in your Salesforce org -
Setup -> search for OAuth and OpenID Connect Settings → Turn on password flow
I have the same issue. The "Allow OAuth Username-Password Flows" option is "On"
What else should we check?
I'm trying a simple connection using :
public static void main(String[] args) throws ClassNotFoundException, SQLException {
Class.forName("com.salesforce.cdp.queryservice.QueryServiceDriver");
Properties properties = new Properties();
properties.put("user", "<userId>");
properties.put("password", "<userPwd>");
properties.put("clientId", "<Consumer Key>");
properties.put("clientSecret", "<Consumer Secret>");
Connection connection = DriverManager.getConnection("jdbc:queryService-jdbc:https://test.salesforce.com",properties);
}
IMHO, I see no reason for the connection not to work .. but, still no joy for me. @kevinquillen , did you solved the issue somehow?
@stMimo @kevinquillen anyone solve this issue?
I have set everything up properly and can authenticate my web app over OAuth JWT, but the same credentials and key pair fail in dbeaver using this driver using the exact set up steps.
The logs only have this: