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 196
196
<MicrosoftCodeAnalysisPublicApiAnalyzersVersion >3.3.0</MicrosoftCodeAnalysisPublicApiAnalyzersVersion >
197
197
<MicrosoftCodeAnalysisCSharpCodeFixTestingXUnitVersion >1.1.1-beta1.21413.1</MicrosoftCodeAnalysisCSharpCodeFixTestingXUnitVersion >
198
198
<MicrosoftCssParserVersion >1.0.0-20200708.1</MicrosoftCssParserVersion >
199
- <MicrosoftIdentityModelLoggingVersion >6.10 .0</MicrosoftIdentityModelLoggingVersion >
200
- <MicrosoftIdentityModelProtocolsOpenIdConnectVersion >6.10 .0</MicrosoftIdentityModelProtocolsOpenIdConnectVersion >
201
- <MicrosoftIdentityModelProtocolsWsFederationVersion >6.10 .0</MicrosoftIdentityModelProtocolsWsFederationVersion >
199
+ <MicrosoftIdentityModelLoggingVersion >6.34 .0</MicrosoftIdentityModelLoggingVersion >
200
+ <MicrosoftIdentityModelProtocolsOpenIdConnectVersion >6.34 .0</MicrosoftIdentityModelProtocolsOpenIdConnectVersion >
201
+ <MicrosoftIdentityModelProtocolsWsFederationVersion >6.34 .0</MicrosoftIdentityModelProtocolsWsFederationVersion >
202
202
<MicrosoftInternalAspNetCoreH2SpecAllVersion >2.2.1</MicrosoftInternalAspNetCoreH2SpecAllVersion >
203
203
<MicrosoftNETCoreWindowsApiSetsVersion >1.0.1</MicrosoftNETCoreWindowsApiSetsVersion >
204
204
<MicrosoftOwinSecurityCookiesVersion >3.0.1</MicrosoftOwinSecurityCookiesVersion >
205
205
<MicrosoftOwinTestingVersion >3.0.1</MicrosoftOwinTestingVersion >
206
206
<MicrosoftWebAdministrationVersion >11.1.0</MicrosoftWebAdministrationVersion >
207
207
<MicrosoftWebXdtVersion >1.4.0</MicrosoftWebXdtVersion >
208
- <SystemIdentityModelTokensJwtVersion >6.10 .0</SystemIdentityModelTokensJwtVersion >
208
+ <SystemIdentityModelTokensJwtVersion >6.34 .0</SystemIdentityModelTokensJwtVersion >
209
209
<NuGetPackagingVersion >6.0.5</NuGetPackagingVersion >
210
210
<NuGetVersioningVersion >6.0.5</NuGetVersioningVersion >
211
211
<NuGetFrameworksVersion >6.0.5</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 . Authorization ;
10
11
using Microsoft . AspNetCore . Builder ;
@@ -20,7 +21,7 @@ namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests
20
21
{
21
22
public class Startup
22
23
{
23
- private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey ( Guid . NewGuid ( ) . ToByteArray ( ) ) ;
24
+ private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey ( SHA256 . HashData ( Guid . NewGuid ( ) . ToByteArray ( ) ) ) ;
24
25
private readonly JwtSecurityTokenHandler JwtTokenHandler = new JwtSecurityTokenHandler ( ) ;
25
26
26
27
public void ConfigureServices ( IServiceCollection services )
Original file line number Diff line number Diff line change 6
6
using System . IO ;
7
7
using System . Reflection ;
8
8
using System . Security . Claims ;
9
+ using System . Security . Cryptography ;
9
10
using System . Threading ;
10
11
using System . Threading . Tasks ;
11
12
using Microsoft . AspNetCore . Authentication . JwtBearer ;
@@ -30,7 +31,7 @@ namespace FunctionalTests
30
31
{
31
32
public class Startup
32
33
{
33
- private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey ( Guid . NewGuid ( ) . ToByteArray ( ) ) ;
34
+ private readonly SymmetricSecurityKey SecurityKey = new SymmetricSecurityKey ( SHA256 . HashData ( Guid . NewGuid ( ) . ToByteArray ( ) ) ) ;
34
35
private readonly JwtSecurityTokenHandler JwtTokenHandler = new JwtSecurityTokenHandler ( ) ;
35
36
36
37
private int _numRedirects ;
You can’t perform that action at this time.
0 commit comments