File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ builder.Services.AddAuthentication(options =>
307307 options .TokenValidationParameters = new TokenValidationParameters ()
308308 {
309309 ValidateAudience = true , ValidateIssuer = true ,
310- ValidAudience = " http://localhost:4200 " , // Audience : Client
310+ ValidAudience = " http://localhost:3000 " , // Audience : Client
311311 ValidIssuer = " https://localhost:6969" , // ⛔ Issuer : Serveur -> HTTPS VÉRIFIEZ le PORT de votre serveur dans launchsettings.json !
312312 IssuerSigningKey = new SymmetricSecurityKey (Encoding .UTF8
313313 .GetBytes (" LooOOongue Phrase SiNoN Ça ne Marchera PaAaAAAaAas !" )) // Clé pour déchiffrer les tokens
@@ -362,7 +362,7 @@ public async Task<ActionResult> Login(LoginDTO login)
362362 .GetBytes (" LooOOongue Phrase SiNoN Ça ne Marchera PaAaAAAaAas !" )); // Phrase identique dans Program.cs
363363 JwtSecurityToken token = new JwtSecurityToken (
364364 issuer : " https://localhost:6969" , // ⛔ Vérifiez le PORT de votre serveur dans launchSettings.json !
365- audience : " http://localhost:4200 " ,
365+ audience : " http://localhost:3000 " ,
366366 claims : authClaims ,
367367 expires : DateTime .Now .AddMinutes (30 ), // Durée de validité du token
368368 signingCredentials : new SigningCredentials (key , SecurityAlgorithms .HmacSha256Signature )
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public async Task<ActionResult> Login(LoginDTO login)
8282 .GetBytes (" LooOOongue Phrase SiNoN Ça ne Marchera PaAaAAAaAas !" ));
8383 JwtSecurityToken token = new JwtSecurityToken (
8484 issuer : " https://localhost:6969" ,
85- audience : " http://localhost:4200 " ,
85+ audience : " http://localhost:3000 " ,
8686 claims : authClaims , // ⛔ Rôle(s) joint(s) au token !
8787 expires : DateTime .Now .AddMinutes (30 ),
8888 signingCredentials : new SigningCredentials (key , SecurityAlgorithms .HmacSha256Signature )
You can’t perform that action at this time.
0 commit comments