File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
csharp/Client/test/FunctionalTests Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 214
214
<MicrosoftCodeAnalysisCSharpAnalyzerTestingXUnitVersion >1.1.2-beta1.22276.1</MicrosoftCodeAnalysisCSharpAnalyzerTestingXUnitVersion >
215
215
<MicrosoftCodeAnalysisCSharpCodeFixTestingXUnitVersion >1.1.2-beta1.22276.1</MicrosoftCodeAnalysisCSharpCodeFixTestingXUnitVersion >
216
216
<MicrosoftCssParserVersion >1.0.0-20200708.1</MicrosoftCssParserVersion >
217
- <MicrosoftIdentityModelLoggingVersion >6.15.1 </MicrosoftIdentityModelLoggingVersion >
218
- <MicrosoftIdentityModelProtocolsOpenIdConnectVersion >6.15.1 </MicrosoftIdentityModelProtocolsOpenIdConnectVersion >
219
- <MicrosoftIdentityModelProtocolsWsFederationVersion >6.15.1 </MicrosoftIdentityModelProtocolsWsFederationVersion >
217
+ <MicrosoftIdentityModelLoggingVersion >6.34.0 </MicrosoftIdentityModelLoggingVersion >
218
+ <MicrosoftIdentityModelProtocolsOpenIdConnectVersion >6.34.0 </MicrosoftIdentityModelProtocolsOpenIdConnectVersion >
219
+ <MicrosoftIdentityModelProtocolsWsFederationVersion >6.34.0 </MicrosoftIdentityModelProtocolsWsFederationVersion >
220
220
<MicrosoftInternalAspNetCoreH2SpecAllVersion >2.2.1</MicrosoftInternalAspNetCoreH2SpecAllVersion >
221
221
<MicrosoftNETCoreWindowsApiSetsVersion >1.0.1</MicrosoftNETCoreWindowsApiSetsVersion >
222
222
<MicrosoftOwinSecurityCookiesVersion >3.0.1</MicrosoftOwinSecurityCookiesVersion >
223
223
<MicrosoftOwinTestingVersion >3.0.1</MicrosoftOwinTestingVersion >
224
224
<MicrosoftWebAdministrationVersion >11.1.0</MicrosoftWebAdministrationVersion >
225
- <SystemIdentityModelTokensJwtVersion >6.21 .0</SystemIdentityModelTokensJwtVersion >
225
+ <SystemIdentityModelTokensJwtVersion >6.34 .0</SystemIdentityModelTokensJwtVersion >
226
226
<NuGetPackagingVersion >6.2.4</NuGetPackagingVersion >
227
227
<NuGetVersioningVersion >6.2.4</NuGetVersioningVersion >
228
228
<NuGetFrameworksVersion >6.2.4</NuGetFrameworksVersion >
Original file line number Diff line number Diff line change 5
5
using System . IdentityModel . Tokens . Jwt ;
6
6
using System . IO ;
7
7
using System . Security . Claims ;
8
+ using System . Security . Cryptography ;
8
9
using Microsoft . AspNetCore . Authentication . JwtBearer ;
9
10
using Microsoft . AspNetCore . Authentication . Negotiate ;
10
11
using Microsoft . AspNetCore . Authorization ;
@@ -21,7 +22,7 @@ namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests;
21
22
22
23
public class Startup
23
24
{
24
- private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey ( Guid . NewGuid ( ) . ToByteArray ( ) ) ;
25
+ private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey ( SHA256 . HashData ( Guid . NewGuid ( ) . ToByteArray ( ) ) ) ;
25
26
private readonly JwtSecurityTokenHandler JwtTokenHandler = new JwtSecurityTokenHandler ( ) ;
26
27
27
28
public void ConfigureServices ( IServiceCollection services )
Original file line number Diff line number Diff line change 5
5
using System . IdentityModel . Tokens . Jwt ;
6
6
using System . Reflection ;
7
7
using System . Security . Claims ;
8
+ using System . Security . Cryptography ;
8
9
using Microsoft . AspNetCore . Authentication . JwtBearer ;
9
10
using Microsoft . AspNetCore . Http . Connections ;
10
11
using Microsoft . AspNetCore . Http . Features ;
@@ -18,7 +19,7 @@ namespace FunctionalTests;
18
19
19
20
public class Startup
20
21
{
21
- private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey ( Guid . NewGuid ( ) . ToByteArray ( ) ) ;
22
+ private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey ( SHA256 . HashData ( Guid . NewGuid ( ) . ToByteArray ( ) ) ) ;
22
23
private readonly JwtSecurityTokenHandler JwtTokenHandler = new JwtSecurityTokenHandler ( ) ;
23
24
24
25
private int _numRedirects ;
You can’t perform that action at this time.
0 commit comments