06-20-2023 09:59 PM
I have a Java 8 Maven project that’s using the duo_client_java v0.6.0 and I’m trying to call my own version of the getUsersWithPaging example.
My code is:
Admin request = new
Admin.AdminBuilder(“GET”, “XXXXX.duosecurity.com”, “/admin/v1/users”).build();
request.signRequest(“myIKey”, “mySKey”);
result = (JSONObject) request.executeJSONRequest();
All I’ve done is add my iKey, sKey, and URL and it keeps returning:
java.lang.Exception: Duo error code (40103): Invalid signature in request credentials
Ironically, I’m able to successfully call the endpoint using the same credentials in Postman.
I can see the Basic authorization being generated in the Java client for the request is significantly more characters than the one being generated in Postman. 84 vs. 200 for the same request parameters/body.
Any ideas?