<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Net 7 on Strathweb. A free flowing tech monologue.</title>
    <link>https://www.strathweb.com/categories/net-7/</link>
    <description>Recent content in Net 7 on Strathweb. A free flowing tech monologue.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 24 Mar 2023 11:06:14 +0000</lastBuildDate><atom:link href="https://www.strathweb.com/categories/net-7/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Post-quantum token signing with Dilithium using Duende Identity Server</title>
      <link>https://www.strathweb.com/2023/03/post-quantum-token-signing-with-dilithium-using-duende-identity-server/</link>
      <pubDate>Fri, 24 Mar 2023 11:06:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2023/03/post-quantum-token-signing-with-dilithium-using-duende-identity-server/</guid>
      <description>&lt;p&gt;On March 12th, a new IETF draft &lt;a href=&#34;https://www.ietf.org/id/draft-ietf-cose-dilithium-00.html&#34;&gt;JOSE and COSE Encoding for Dilithium&lt;/a&gt; was published. It describes JSON serializations for CRYSTALS-Dilithium, a post-quantum cryptography suite. This in turn allows using post-quantum cryptography for tasks like signing JSON Web Tokens in a standardized fashion.&lt;/p&gt;
&lt;p&gt;I &lt;a href=&#34;https://www.strathweb.com/2023/02/post-quantum-cryptography-in-net/&#34;&gt;previously blogged&lt;/a&gt; about using CRYSTALS-Dilithium from .NET applications, so in this post let&amp;rsquo;s see how we can apply this new draft to one of the most popular .NET OpenID Connect / OAuth 2.0 servers, &lt;a href=&#34;https://duendesoftware.com/products/identityserver&#34;&gt;Duende Identity Server&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Beware of the default ASP.NET Core Identity settings</title>
      <link>https://www.strathweb.com/2023/03/beware-of-the-default-aspnet-identity-settings/</link>
      <pubDate>Thu, 02 Mar 2023 11:06:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2023/03/beware-of-the-default-aspnet-identity-settings/</guid>
      <description>&lt;p&gt;The other day I was involved in setting up a new project based on &lt;a href=&#34;https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-7.0&amp;amp;tabs=visual-studio&#34;&gt;ASP.NET Core Identity&lt;/a&gt;, when I noticed something related to the default configuration that I thought would be worth sharing here.&lt;/p&gt;
&lt;p&gt;Of course, while in general it is not great to rely on default settings of any product (especially when it is the security backbone of your application!) one also expects sensible defaults to be provided.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s have a look.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Post quantum cryptography in .NET</title>
      <link>https://www.strathweb.com/2023/02/post-quantum-cryptography-in-net/</link>
      <pubDate>Tue, 21 Feb 2023 11:06:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2023/02/post-quantum-cryptography-in-net/</guid>
      <description>&lt;p&gt;I have written extensively about &lt;a href=&#34;https://www.strathweb.com/categories/quantum-computing&#34;&gt;quantum computing&lt;/a&gt; on this blog before. Quantum computing has the potential to break many of the cryptographic systems that we use today. Shor&amp;rsquo;s algorithm, for example, can efficiently factor large numbers, which would make widely-used asymmetric cryptography schemes such as RSA and elliptic curves insecure.&lt;/p&gt;
&lt;p&gt;In this post, we&amp;rsquo;ll explore how to use post-quantum cryptography from a C# program, using CRYSTALS-Kyber and CRYSTALS-Dilithium as examples.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>dotnet WASI applications in the cloud</title>
      <link>https://www.strathweb.com/2022/12/dotnet-wasi-applications-in-the-cloud/</link>
      <pubDate>Thu, 22 Dec 2022 11:06:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2022/12/dotnet-wasi-applications-in-the-cloud/</guid>
      <description>&lt;p&gt;Some time ago I &lt;a href=&#34;https://www.strathweb.com/2022/03/running-net-7-apps-on-wasi-on-arm64-mac/&#34;&gt;blogged&lt;/a&gt; about using the experimental &lt;a href=&#34;https://github.com/SteveSandersonMS/dotnet-wasi-sdk&#34;&gt;dotnet WASI SDK&lt;/a&gt; on ARM Macs. Today we are going to explore building dotnet based WASI-WASM applications with that SDK, with the goal of deploying them to the cloud.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>dotnet-script 1.4 is out with .NET 7.0 support</title>
      <link>https://www.strathweb.com/2022/11/dotnet-script-1-4-is-out-with-net-7-0-support/</link>
      <pubDate>Wed, 30 Nov 2022 16:19:56 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2022/11/dotnet-script-1-4-is-out-with-net-7-0-support/</guid>
      <description>&lt;p&gt;This week we &lt;a href=&#34;https://github.com/dotnet-script/dotnet-script/releases/tag/1.4.0&#34;&gt;released&lt;/a&gt; version 1.4 of &lt;a href=&#34;https://github.com/filipw/dotnet-script&#34;&gt;dotnet-script&lt;/a&gt;. The latest release introduces support for .NET 7.0 and C# 11 and is available, as usually, through Github releases and on Nuget. You will need to have at least the .NET SDK &lt;a href=&#34;https://dotnet.microsoft.com/download/dotnet/7.0&#34;&gt;7.0.100&lt;/a&gt; installed.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Problem Details responses everywhere with ASP.NET Core and .NET 7</title>
      <link>https://www.strathweb.com/2022/08/problem-details-responses-everywhere-with-asp-net-core-and-net-7/</link>
      <pubDate>Sun, 28 Aug 2022 08:18:21 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2022/08/problem-details-responses-everywhere-with-asp-net-core-and-net-7/</guid>
      <description>&lt;p&gt;The &lt;a href=&#34;https://www.rfc-editor.org/rfc/rfc7807.html&#34;&gt;Problem Details for HTTP APIs&lt;/a&gt; RFC provides a unified, machine-readable and standardized recipe for exposing error information out of your HTTP APIs - which is of course beneficial both for the API authors, as well as the integrating parties.&lt;/p&gt;
&lt;p&gt;ASP.NET Core has supported problem details since version 2.1, however it was not been uniformly used across all ASP.NET Core components. It was possible to return the Problem Details response manually, or the framework could generate it automatically in several specific cases. Even the official documentation referred to a &lt;a href=&#34;https://docs.microsoft.com/en-us/aspnet/core/web-api/handle-errors?view=aspnetcore-6.0#produce-a-problemdetails-payload-for-exceptions&#34;&gt;third-party middleware&lt;/a&gt; in order to get a better Problem Details experience.&lt;/p&gt;
&lt;p&gt;This is finally changing in .NET 7.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Running .NET 7 apps on WASI on arm64 Mac</title>
      <link>https://www.strathweb.com/2022/03/running-net-7-apps-on-wasi-on-arm64-mac/</link>
      <pubDate>Wed, 30 Mar 2022 20:05:01 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2022/03/running-net-7-apps-on-wasi-on-arm64-mac/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://wasi.dev&#34;&gt;WASI&lt;/a&gt; stands for WebAssembly System Interface, and allows to run WebAssembly code independently of the browsers, as it provides access to operating system features such as file system access or networking. It is highly experimental, but at the same time a tremendously interesting project, and one that has the potential of contributing to a massive paradigm-shift in the industry, making WebAssembly truly ubiquitous.&lt;/p&gt;
&lt;p&gt;The great mad scientist of web things at Microsoft, Steve Sanderson, recently published the first version of an experiemental &lt;a href=&#34;https://github.com/SteveSandersonMS/dotnet-wasi-sdk&#34;&gt;WASI SDK for .NET&lt;/a&gt;, which allows building .NET 7 and ASP.NET Core applications into standalone WASI compliant apps, and running them from WASI hosts. Steve&amp;rsquo;s repo provides the easy to follow steps to get going on Windows and Linux, in this post I will walk through some additional hoops that one may need to jump on arm64 Macs.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
