Fix bug when yandex account added not through goa

i9-beta
Alexey Berezhok 1 year ago committed by Sergey Cherevko
parent 32fddc15eb
commit 70318070cf
Signed by: scherevko
GPG Key ID: D87CBBC16D2E4A72

@ -0,0 +1,46 @@
From 7fa904c3240b16929c7262912b750d48536d07bf Mon Sep 17 00:00:00 2001
From: Alexey Berezhok <alexey.berezhok@softline.com>
Date: Tue, 19 Sep 2023 17:37:54 +0300
Subject: [PATCH] Fix bug when yandex account added not through goa
---
src/libedataserver/e-oauth2-service-yandex.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/libedataserver/e-oauth2-service-yandex.c b/src/libedataserver/e-oauth2-service-yandex.c
index 64ac387..492c826 100644
--- a/src/libedataserver/e-oauth2-service-yandex.c
+++ b/src/libedataserver/e-oauth2-service-yandex.c
@@ -127,6 +127,13 @@ eos_yandex_get_refresh_uri (EOAuth2Service *service,
return "https://oauth.yandex.ru/token";
}
+static const gchar *
+eos_yandex_get_redirect_uri (EOAuth2Service *service,
+ ESource *source)
+{
+ return "http://localhost";
+}
+
static void
eos_yandex_prepare_authentication_uri_query (EOAuth2Service *service,
ESource *source,
@@ -139,7 +146,6 @@ eos_yandex_prepare_authentication_uri_query (EOAuth2Service *service,
g_return_if_fail (uri_query != NULL);
e_oauth2_service_util_set_to_form (uri_query, "scope", YANDEX_SCOPE);
- e_oauth2_service_util_set_to_form (uri_query, "include_granted_scopes", "false");
}
static gboolean
@@ -199,6 +205,7 @@ e_oauth2_service_yandex_oauth2_service_init (EOAuth2ServiceInterface *iface)
iface->get_client_secret = eos_yandex_get_client_secret;
iface->get_authentication_uri = eos_yandex_get_authentication_uri;
iface->get_refresh_uri = eos_yandex_get_refresh_uri;
+ iface->get_redirect_uri = eos_yandex_get_redirect_uri;
iface->prepare_authentication_uri_query = eos_yandex_prepare_authentication_uri_query;
iface->extract_authorization_code = eos_yandex_extract_authorization_code;
}
--
2.39.1

@ -54,7 +54,11 @@
Name: evolution-data-server
Version: 3.40.4
<<<<<<< HEAD
Release: 9%{?dist}
=======
Release: 6%{?dist}.inferit.3
>>>>>>> b248d3c (Fix bug when yandex account added not through goa)
Summary: Backend data server for Evolution
License: LGPLv2+
URL: https://wiki.gnome.org/Apps/Evolution
@ -68,6 +72,7 @@ Patch05: evolution-data-server-3.40.4-caldav-crash.patch
Patch06: evolution-data-server-3.40.4-no-libedataserverui-in-alarm-notify.patch
Patch07: 0007-oauth2-enable-html5-features.patch
Patch100: 0001-Added-yandex-backend-support-prebuild.patch
Patch101: 0001-Fix-bug-when-yandex-account-added-not-through-goa.patch
Provides: evolution-webcal = %{version}
Obsoletes: evolution-webcal < 2.24.0
@ -526,6 +531,9 @@ find $RPM_BUILD_ROOT -name '*.so.*' -exec chmod +x {} \;
* Tue Oct 10 2023 Milan Crha <mcrha@redhat.com> - 3.40.4-7
- Resolves: RHEL-12405 (Move WebKitGTK parts in Evolution Data Server into optional subpackage)
* Tue Sep 19 2023 Alexey Berezhok <alexey.berezhok@msvsphere-os.ru> - 3.40.4-6.inferit.3
- Fix bug when yandex account added not through goa
* Tue May 23 2023 Alexey Berezhok <alexey.berezhok@msvsphere.ru> - 3.40.4-6.inferit.2
- Added yandex provider support

Loading…
Cancel
Save