From fd97732d4da7fa24c50ddd7296aa6f84b1f99573 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 15 Jan 2023 17:14:41 +0200 Subject: [PATCH] reasign the OAuth2 event fields to make sure that the event always have the latest OAuth2 state --- apis/record_auth.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apis/record_auth.go b/apis/record_auth.go index 94cf1206..c7af8b59 100644 --- a/apis/record_auth.go +++ b/apis/record_auth.go @@ -270,6 +270,9 @@ func (api *recordAuthApi) authWithOAuth2(c echo.Context) error { return NewBadRequestError("Failed to authenticate.", err) } + e.Record = data.Record + e.OAuth2User = data.OAuth2User + return api.authResponse(e.HttpContext, e.Record, e.OAuth2User) }) }