Skip to content

Commit 0ee7c64

Browse files
authored
Update Endpoint.java
when getting the auth token, the service account pass was used twice and the name was not used
1 parent 00c418f commit 0ee7c64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/privacyidea/Endpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private void getAuthTokenFromServer() {
190190

191191
//log.info("Getting auth token from PI");
192192
Map<String, String> params = new LinkedHashMap<>();
193-
params.put(Constants.PARAM_KEY_USERNAME, serviceAccountPass);
193+
params.put(Constants.PARAM_KEY_USERNAME, serviceAccountName);
194194
params.put(Constants.PARAM_KEY_PASSWORD, serviceAccountPass);
195195
String response = sendRequest(Constants.ENDPOINT_AUTH, params, false, Constants.POST);
196196

0 commit comments

Comments
 (0)