Correct error message when failing to unwrap AppRole.
Closes gh-906 Signed-off-by: Max Brauer <mbrauer@vmware.com>
This commit is contained in:
@@ -280,7 +280,7 @@ public class AppRoleAuthentication implements ClientAuthentication, Authenticati
|
||||
return (String) response.getRequiredData().get("secret_id");
|
||||
}
|
||||
catch (HttpStatusCodeException e) {
|
||||
throw new VaultLoginException("Cannot unwrap Role id using AppRole: %s"
|
||||
throw new VaultLoginException("Cannot unwrap Secret id using AppRole: %s"
|
||||
.formatted(VaultResponses.getError(e.getResponseBodyAsString())), e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user