From 49007874f49bea47514aac0a0a5eee8640667b98 Mon Sep 17 00:00:00 2001 From: Luis Eduardo Cislaghi Date: Tue, 21 Jan 2025 15:47:34 -0300 Subject: [PATCH] fix: typo on var name --- Server/src/OAuth20.Server/Services/AuthorizeResultService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/src/OAuth20.Server/Services/AuthorizeResultService.cs b/Server/src/OAuth20.Server/Services/AuthorizeResultService.cs index efb25ea..68d168c 100644 --- a/Server/src/OAuth20.Server/Services/AuthorizeResultService.cs +++ b/Server/src/OAuth20.Server/Services/AuthorizeResultService.cs @@ -363,7 +363,7 @@ private int SaveJWTTokenInBackStore(string clientId, string accessToken, DateTim private bool codeVerifierIsSendByTheClientThatReceivedTheCode(string codeVerifier, string codeChallenge, string codeChallengeMethod) { - var odeVerifireAsByte = Encoding.ASCII.GetBytes(codeVerifier); + var codeVerifiedAsByte = Encoding.ASCII.GetBytes(codeVerifier); if (codeChallengeMethod == Constants.ChallengeMethod.Plain) { @@ -374,7 +374,7 @@ private bool codeVerifierIsSendByTheClientThatReceivedTheCode(string codeVerifie { using var shaS256 = SHA256.Create(); - var computedHashS256 = shaS256.ComputeHash(odeVerifireAsByte); + var computedHashS256 = shaS256.ComputeHash(codeVerifiedAsByte); var tranformedResultS256 = Base64UrlEncoder.Encode(computedHashS256); return tranformedResultS256.Equals(codeChallenge);