Comments on: How to Use Basic Authentication With HttpClient? https://code-maze.com/aspnetcore-basic-authentication-with-httpclient/ Learn. Code. Succeed. Sat, 09 Sep 2023 07:46:40 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Marinko Spasojević https://code-maze.com/aspnetcore-basic-authentication-with-httpclient/#comment-8664 Sat, 09 Sep 2023 07:46:40 +0000 https://code-maze.com/?p=95019#comment-8664 In reply to Michael.

Hi Michael. I can agree with that. But after all, it is the same thing and really you gain nothing in performance or even many would argue about readability as well. Again, to be honest, you can use any form and will get the same result for sure.

]]>
By: Michael https://code-maze.com/aspnetcore-basic-authentication-with-httpclient/#comment-8663 Fri, 08 Sep 2023 21:02:59 +0000 https://code-maze.com/?p=95019#comment-8663 Thank you.

But indstead of
if (username == “codemaze” &&
password == “isthebest”)
{
return true;
}

Is better

return username == “codemaze” &&
password == “isthebest”;

]]>