From e6594260f8f9f18f68b789129b1e336e09312b34 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Mon, 30 Sep 2024 17:52:29 +0600 Subject: [PATCH 1/2] fix: remove extra scopes for murena oidc for OIDC login, the accessToken length is dependent on the requested scopes. Which cause /e/OS mail is not working as expected for long accessToken (mailServer has a barier on perline length of request). Removing not required scopes resolve this issue. issue: https://gitlab.e.foundation/e/os/backlog/-/issues/2497 --- .../at/bitfire/davdroid/authorization/IdentityProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/at/bitfire/davdroid/authorization/IdentityProvider.kt b/app/src/main/kotlin/at/bitfire/davdroid/authorization/IdentityProvider.kt index f7fce1c16..868529719 100644 --- a/app/src/main/kotlin/at/bitfire/davdroid/authorization/IdentityProvider.kt +++ b/app/src/main/kotlin/at/bitfire/davdroid/authorization/IdentityProvider.kt @@ -45,7 +45,7 @@ enum class IdentityProvider( clientSecret = BuildConfig.MURENA_CLIENT_SECRET, redirectUri = BuildConfig.MURENA_REDIRECT_URI + ":/redirect", logoutRedirectUri = BuildConfig.MURENA_LOGOUT_REDIRECT_URI + ":/redirect", - scope = "openid address profile email phone roles offline_access web-origins microprofile-jwt", + scope = "openid profile email", userInfoEndpoint = null, baseUrl = BuildConfig.MURENA_BASE_URL, ), -- GitLab From 9f7c3a7121a3a67cdf3f222fdf601ff12577ece0 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Mon, 30 Sep 2024 19:37:09 +0600 Subject: [PATCH 2/2] fixup --- .../at/bitfire/davdroid/authorization/IdentityProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/at/bitfire/davdroid/authorization/IdentityProvider.kt b/app/src/main/kotlin/at/bitfire/davdroid/authorization/IdentityProvider.kt index 868529719..c7cdbf441 100644 --- a/app/src/main/kotlin/at/bitfire/davdroid/authorization/IdentityProvider.kt +++ b/app/src/main/kotlin/at/bitfire/davdroid/authorization/IdentityProvider.kt @@ -45,7 +45,7 @@ enum class IdentityProvider( clientSecret = BuildConfig.MURENA_CLIENT_SECRET, redirectUri = BuildConfig.MURENA_REDIRECT_URI + ":/redirect", logoutRedirectUri = BuildConfig.MURENA_LOGOUT_REDIRECT_URI + ":/redirect", - scope = "openid profile email", + scope = "openid profile email offline_access", userInfoEndpoint = null, baseUrl = BuildConfig.MURENA_BASE_URL, ), -- GitLab