Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libsignon] Increase maximum token storage size. JB#56536 #5

Merged
merged 1 commit into from Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions rpm/0011-Increase-maximum-token-storage-size.patch
@@ -0,0 +1,32 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomi=20Lepp=C3=A4nen?= <tomi.leppanen@jolla.com>
Date: Fri, 26 Aug 2022 14:56:43 +0300
Subject: [PATCH] Increase maximum token storage size
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Increase maximum token storage size to 16 kB as not all OAuth tokens
will fit to 4 kB.

Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
---
src/signond/credentialsdb.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/signond/credentialsdb.h b/src/signond/credentialsdb.h
index d903f86..1417702 100644
--- a/src/signond/credentialsdb.h
+++ b/src/signond/credentialsdb.h
@@ -36,7 +36,7 @@

#include "SignOn/abstract-secrets-storage.h"

-#define SSO_MAX_TOKEN_STORAGE (4*1024) // 4 kB for token store/identity/method
+#define SSO_MAX_TOKEN_STORAGE (16*1024) // 16 kB for token store/identity/method

class TestDatabase;

--
2.37.2

1 change: 1 addition & 0 deletions rpm/signon-qt5.spec
Expand Up @@ -17,6 +17,7 @@ Patch7: 0007-Use-p2p-dbus-for-signon-ui-flows.-Contributes-to-JB-.patch
Patch8: 0008-Initialize-secrets-db-on-start.-Fixes-JB-34557.patch
Patch9: 0009-Treat-empty-ACL-as-synonym-for-.-Contributes-to-JB-2.patch
Patch10: 0010-Use-P2P-DBus-server-for-tests-if-built-in-ENABLE_P2P.patch
Patch11: 0011-Increase-maximum-token-storage-size.patch

BuildRequires: doxygen
BuildRequires: pkgconfig(Qt5Core)
Expand Down