Skip to content

Commit 96b9171

Browse files
committed
fix: namings
1 parent 3676d2d commit 96b9171

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/VirtoCommerce.Platform.Web/Controllers/Api/AuthorizationController.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public async Task<ActionResult> Exchange()
167167
}
168168

169169
await _eventPublisher.Publish(new BeforeUserLoginEvent(user));
170-
await HandleTokenRequests(user, context);
170+
await HandleTokenRequest(user, context);
171171

172172
// Create a new authentication ticket.
173173
var ticket = await CreateTicketAsync(user, context);
@@ -213,7 +213,7 @@ public async Task<ActionResult> Exchange()
213213
}
214214
}
215215

216-
await HandleTokenRequests(user, context);
216+
await HandleTokenRequest(user, context);
217217

218218
// Create a new authentication ticket, but reuse the properties stored in the
219219
// authorization code/refresh token, including the scopes originally granted.
@@ -255,7 +255,7 @@ public async Task<ActionResult> Exchange()
255255
}
256256
}
257257

258-
await HandleTokenRequests(signInResult.User, context);
258+
await HandleTokenRequest(signInResult.User, context);
259259

260260
var ticket = await CreateTicketAsync(signInResult.User, context);
261261
ticket.Principal.SetAuthenticationMethod(signInResult.LoginProvider, [Destinations.AccessToken]);
@@ -335,7 +335,7 @@ public async Task<ActionResult> Exchange()
335335
}
336336
}
337337

338-
await HandleTokenRequests(impersonatedUser, context); //?????
338+
await HandleTokenRequest(impersonatedUser, context); //?????
339339

340340
// Create a new authentication ticket, but reuse the properties stored in the
341341
// authorization code/refresh token, including the scopes originally granted.
@@ -814,7 +814,7 @@ private Task<IdentityResult> SetLastLoginDate(ApplicationUser user)
814814
return _userManager.UpdateAsync(user);
815815
}
816816

817-
private async Task HandleTokenRequests(ApplicationUser user, TokenRequestContext context)
817+
private async Task HandleTokenRequest(ApplicationUser user, TokenRequestContext context)
818818
{
819819
foreach (var requestHandler in _requestHandlers)
820820
{

0 commit comments

Comments
 (0)