From 680fcacf3fa1e80e7ff4cfe12966521033b76e9e Mon Sep 17 00:00:00 2001 From: HarelM Date: Sun, 6 Oct 2024 17:19:16 +0300 Subject: [PATCH] Sunset Oauth1 #1985 - Fix incorrect token usage --- IsraelHiking.Web/OsmAccessTokenEventsHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IsraelHiking.Web/OsmAccessTokenEventsHelper.cs b/IsraelHiking.Web/OsmAccessTokenEventsHelper.cs index 20f0d23f2..9d766628a 100644 --- a/IsraelHiking.Web/OsmAccessTokenEventsHelper.cs +++ b/IsraelHiking.Web/OsmAccessTokenEventsHelper.cs @@ -62,7 +62,7 @@ public async Task OnMessageReceived(MessageReceivedContext context) var userIdFromCache = await _appCache.GetOrAddAsync(token, async () => { - var osmGateway = _clientsFactory.CreateOAuth2Client(context.Token); + var osmGateway = _clientsFactory.CreateOAuth2Client(token); var user = await osmGateway.GetUserDetails(); var userId = user.Id.ToString(); _logger.LogInformation($"User {userId} had just logged in");