Skip to content

Commit

Permalink
Merge in 'release/7.0' changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnet-bot committed Jan 11, 2024
2 parents fabdff4 + 6187b6e commit ecd58f3
Show file tree
Hide file tree
Showing 7 changed files with 330 additions and 325 deletions.
431 changes: 217 additions & 214 deletions eng/Baseline.Designer.props

Large diffs are not rendered by default.

208 changes: 104 additions & 104 deletions eng/Baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,109 +4,109 @@ This file contains a list of all the packages and their versions which were rele
Update this list when preparing for a new patch.
-->
<Baseline Version="7.0.14">
<Package Id="AspNetCoreRuntime.7.0.x64" Version="7.0.14" />
<Package Id="AspNetCoreRuntime.7.0.x86" Version="7.0.14" />
<Package Id="dotnet-sql-cache" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Ref" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-arm" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-arm64" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-musl-arm" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-musl-arm64" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-musl-x64" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-x64" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.osx-arm64" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.osx-x64" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.win-arm" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.win-arm64" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.win-x64" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.App.Runtime.win-x86" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authentication.Certificate" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authentication.Facebook" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authentication.Google" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authentication.Negotiate" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authentication.Twitter" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authentication.WsFederation" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Authorization" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.AzureAppServices.HostingStartup" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.AzureAppServices.SiteExtension" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.AzureAppServicesIntegration" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.Analyzers" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.Authorization" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.CustomElements" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.Forms" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.Web" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Components.WebView" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.ConcurrencyLimiter" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Connections.Abstractions" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Cryptography.Internal" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.DataProtection" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.DataProtection.Abstractions" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.DataProtection.Extensions" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Grpc.JsonTranscoding" Version="7.0.14" />
<Baseline Version="7.0.15">
<Package Id="AspNetCoreRuntime.7.0.x64" Version="7.0.15" />
<Package Id="AspNetCoreRuntime.7.0.x86" Version="7.0.15" />
<Package Id="dotnet-sql-cache" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Ref" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-arm" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-arm64" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-musl-arm" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-musl-arm64" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-musl-x64" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.linux-x64" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.osx-arm64" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.osx-x64" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.win-arm" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.win-arm64" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.win-x64" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.App.Runtime.win-x86" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authentication.Certificate" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authentication.Facebook" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authentication.Google" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authentication.Negotiate" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authentication.Twitter" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authentication.WsFederation" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Authorization" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.AzureAppServices.HostingStartup" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.AzureAppServices.SiteExtension" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.AzureAppServicesIntegration" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.Analyzers" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.Authorization" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.CustomElements" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.Forms" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.Web" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Components.WebView" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.ConcurrencyLimiter" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Connections.Abstractions" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Cryptography.Internal" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.DataProtection" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.DataProtection.Abstractions" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.DataProtection.Extensions" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Grpc.JsonTranscoding" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Grpc.Swagger" Version="0.3.3" />
<Package Id="Microsoft.AspNetCore.HeaderPropagation" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Hosting.WindowsServices" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Http.Connections.Client" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Http.Connections.Common" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Identity.UI" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.JsonPatch" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Metadata" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.MiddlewareAnalysis" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.OpenApi" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.Owin" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SignalR.Client" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SignalR.Client.Core" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SignalR.Common" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SignalR.Protocols.Json" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SignalR.Specification.Tests" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SpaProxy" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.SpaServices.Extensions" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.TestHost" Version="7.0.14" />
<Package Id="Microsoft.Authentication.WebAssembly.Msal" Version="7.0.14" />
<Package Id="Microsoft.dotnet-openapi" Version="7.0.14" />
<Package Id="Microsoft.DotNet.Web.Client.ItemTemplates" Version="7.0.14" />
<Package Id="Microsoft.DotNet.Web.ItemTemplates.7.0" Version="7.0.14" />
<Package Id="Microsoft.DotNet.Web.ProjectTemplates.7.0" Version="7.0.14" />
<Package Id="Microsoft.DotNet.Web.Spa.ProjectTemplates.7.0" Version="7.0.14" />
<Package Id="Microsoft.Extensions.ApiDescription.Client" Version="7.0.14" />
<Package Id="Microsoft.Extensions.ApiDescription.Server" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Caching.SqlServer" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Caching.StackExchangeRedis" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Configuration.KeyPerFile" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Diagnostics.HealthChecks" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Features" Version="7.0.14" />
<Package Id="Microsoft.Extensions.FileProviders.Embedded" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Http.Polly" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Identity.Core" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Identity.Stores" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Localization" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Localization.Abstractions" Version="7.0.14" />
<Package Id="Microsoft.Extensions.Logging.AzureAppServices" Version="7.0.14" />
<Package Id="Microsoft.Extensions.ObjectPool" Version="7.0.14" />
<Package Id="Microsoft.Extensions.WebEncoders" Version="7.0.14" />
<Package Id="Microsoft.JSInterop" Version="7.0.14" />
<Package Id="Microsoft.JSInterop.WebAssembly" Version="7.0.14" />
<Package Id="Microsoft.AspNetCore.HeaderPropagation" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Hosting.WindowsServices" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Http.Connections.Client" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Http.Connections.Common" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Identity.UI" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.JsonPatch" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Metadata" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.MiddlewareAnalysis" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.OpenApi" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.Owin" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SignalR.Client" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SignalR.Client.Core" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SignalR.Common" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SignalR.Protocols.Json" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SignalR.Specification.Tests" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SpaProxy" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.SpaServices.Extensions" Version="7.0.15" />
<Package Id="Microsoft.AspNetCore.TestHost" Version="7.0.15" />
<Package Id="Microsoft.Authentication.WebAssembly.Msal" Version="7.0.15" />
<Package Id="Microsoft.dotnet-openapi" Version="7.0.15" />
<Package Id="Microsoft.DotNet.Web.Client.ItemTemplates" Version="7.0.15" />
<Package Id="Microsoft.DotNet.Web.ItemTemplates.7.0" Version="7.0.15" />
<Package Id="Microsoft.DotNet.Web.ProjectTemplates.7.0" Version="7.0.15" />
<Package Id="Microsoft.DotNet.Web.Spa.ProjectTemplates.7.0" Version="7.0.15" />
<Package Id="Microsoft.Extensions.ApiDescription.Client" Version="7.0.15" />
<Package Id="Microsoft.Extensions.ApiDescription.Server" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Caching.SqlServer" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Caching.StackExchangeRedis" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Configuration.KeyPerFile" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Diagnostics.HealthChecks" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Features" Version="7.0.15" />
<Package Id="Microsoft.Extensions.FileProviders.Embedded" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Http.Polly" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Identity.Core" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Identity.Stores" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Localization" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Localization.Abstractions" Version="7.0.15" />
<Package Id="Microsoft.Extensions.Logging.AzureAppServices" Version="7.0.15" />
<Package Id="Microsoft.Extensions.ObjectPool" Version="7.0.15" />
<Package Id="Microsoft.Extensions.WebEncoders" Version="7.0.15" />
<Package Id="Microsoft.JSInterop" Version="7.0.15" />
<Package Id="Microsoft.JSInterop.WebAssembly" Version="7.0.15" />
</Baseline>
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AspNetCoreMajorVersion>7</AspNetCoreMajorVersion>
<AspNetCoreMinorVersion>0</AspNetCoreMinorVersion>
<AspNetCorePatchVersion>16</AspNetCorePatchVersion>
<ValidateBaseline>false</ValidateBaseline>
<ValidateBaseline>true</ValidateBaseline>
<!--
When StabilizePackageVersion is set to 'true', this branch will produce stable outputs for 'Shipping' packages
-->
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"sdk": {
"version": "7.0.114"
"version": "7.0.115"
},
"tools": {
"dotnet": "7.0.114",
"dotnet": "7.0.115",
"runtimes": {
"dotnet/x86": [
"$(MicrosoftNETCoreBrowserDebugHostTransportVersion)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using System.Net.Http;
using System.Net.WebSockets;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Security.Principal;
using System.Text;
using System.Threading;
Expand Down Expand Up @@ -2818,7 +2819,7 @@ public async Task ConnectionClosedRequestedTriggeredOnAuthExpiration()
[InlineData(HttpTransportType.WebSockets)]
public async Task AuthenticationExpirationSetOnAuthenticatedConnectionWithJWT(HttpTransportType transportType)
{
SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(Guid.NewGuid().ToByteArray());
SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
JwtSecurityTokenHandler JwtTokenHandler = new JwtSecurityTokenHandler();

using var host = CreateHost(services =>
Expand Down Expand Up @@ -2980,7 +2981,7 @@ public async Task AuthenticationExpirationSetOnAuthenticatedConnectionWithCookie
[InlineData(HttpTransportType.WebSockets)]
public async Task AuthenticationExpirationUsesCorrectScheme(HttpTransportType transportType)
{
var SecurityKey = new SymmetricSecurityKey(Guid.NewGuid().ToByteArray());
var SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
var JwtTokenHandler = new JwtSecurityTokenHandler();

using var host = CreateHost(services =>
Expand Down
2 changes: 1 addition & 1 deletion src/SignalR/samples/JwtSample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace JwtSample;

public class Startup
{
private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(RandomNumberGenerator.GetBytes(16));
private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(RandomNumberGenerator.GetBytes(32));
private readonly JwtSecurityTokenHandler JwtTokenHandler = new JwtSecurityTokenHandler();

public void ConfigureServices(IServiceCollection services)
Expand Down
3 changes: 2 additions & 1 deletion src/SignalR/server/SignalR/test/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.IdentityModel.Tokens.Jwt;
using System.IO;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
Expand All @@ -18,7 +19,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests;

public class Startup
{
private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(Guid.NewGuid().ToByteArray());
private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey(SHA256.HashData(Guid.NewGuid().ToByteArray()));
private readonly JwtSecurityTokenHandler JwtTokenHandler = new JwtSecurityTokenHandler();

public void ConfigureServices(IServiceCollection services)
Expand Down

0 comments on commit ecd58f3

Please sign in to comment.