From bc29861089caa6bbb942dc053a14e6a269662d3c Mon Sep 17 00:00:00 2001 From: Brian Hill Date: Fri, 19 Jul 2024 13:57:17 -0400 Subject: [PATCH 1/2] URL Encode Username and Pwd --- PaloAlto/Client/PaloAltoClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PaloAlto/Client/PaloAltoClient.cs b/PaloAlto/Client/PaloAltoClient.cs index a9f7569..a509980 100644 --- a/PaloAlto/Client/PaloAltoClient.cs +++ b/PaloAlto/Client/PaloAltoClient.cs @@ -34,8 +34,8 @@ public class PaloAltoClient public PaloAltoClient(string url, string userName, string password) { _logger = LogHandler.GetClassLogger(); - ServerUserName = userName; - ServerPassword = password; + ServerUserName = Uri.EscapeDataString(userName); + ServerPassword = Uri.EscapeDataString(password); var httpClientHandler = new HttpClientHandler { ServerCertificateCustomValidationCallback = (message, cert, chain, sslPolicyErrors) => true From 9eb4e7e20e0522970949355344aa4dc713e09b10 Mon Sep 17 00:00:00 2001 From: Brian Hill <76450501+bhillkeyfactor@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:08:48 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 928f530..1a5e9ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +2.2.1 +* Fixed URL Encoding on Palo Username and Pwd that caused invalid credentials error + 2.2.0 * Removed support for binding cert to new binding location, can only update certs that are previously bound * Support for replacing certs on all binding locations both Panorama and Firewalls as long as it was there before