-
Notifications
You must be signed in to change notification settings - Fork 953
Add digital signature/zotero config to settings iframe #12913
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
Add digital signature/zotero config to settings iframe #12913
Conversation
codewithvk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to my self: remove unwanted logs
5da0519 to
1fee150
Compare
4528686 to
d2352f8
Compare
d2352f8 to
13ba388
Compare
137dfc1 to
746eff2
Compare
lpranam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested the code for Zotero and it works as expected for backward compatibility.
cee8c15 to
bd5b903
Compare
caolanm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me. But quikee to check some sample digital signing to confirm that that still works.
This commit adds support for configuring digital signature certificates, keys, and CA in the admin integrator settings interface. The signature configuration is stored in viewsetting.json and passed through to the document session for use in document signing. Changes include: - Add signature fields (cert, key, CA) to ViewSettings interface - Create textarea UI components for multi-line certificate input - Refactor view settings to use generic input field creation - Extract signature data from viewsetting.json and store in Session - Pass signature config through DocumentBroker to Kit process - Add signatureconfig parameter to load command - Merge signature data into userPrivateInfo for LibreOfficeKit The signature configuration follows the same pattern as existing view settings like accessibility and Zotero API key. Signed-off-by: codewithvk <[email protected]> Change-Id: I4da8748a992d8f95e3f7e782843c862277597c3d
When shifting digital signature configuration to the new settings iframe, existing users with signature credentials stored in UserPrivateInfo would lose their keys. This change ensures backward compatibility by migrating signature values from the old storage location to viewsetting.json. Signed-off-by: codewithvk <[email protected]> Change-Id: I26ce5cc115f546f8069e228c7b6ffeb347061d72
problem: After shifting to AdminIntegratorSettings zotero settings disappeared for most user as it required re entering the api key in settings. This made user think zotero was broken Signed-off-by: codewithvk <[email protected]> Change-Id: I03feaabc9d784bd30678f844047533fcda497ce6
Signed-off-by: codewithvk <[email protected]> Change-Id: I29b92e118a8a3e8ef0a95c5ca49bdc4d7ef23537
Signed-off-by: codewithvk <[email protected]> Change-Id: I196c115ffc992e19e0969f279fee11078f006462
Signed-off-by: codewithvk <[email protected]> Change-Id: If5a258d78e8cd03346a4eb178157f61a3903781b
Previously sent empty signatureconfig={} which could be problematic for
load command. Now only send signature configuration when view settings
are actually updated, eliminating unnecessary empty JSON payload.
Signed-off-by: codewithvk <[email protected]>
Change-Id: I977af57923f785f7d26c92706053cb5ba2232bd1
bd5b903 to
c8153de
Compare
quikee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works OK
Since Collabora Online already supports digital signatures via the settings iframe, this patch is intended to only hide the UI inputs. The related variables will still be sent to Online through checkfileinfo, and migration cases will be handled as well. Online PR: CollaboraOnline/online#12913 Signed-off-by: codewithvk <[email protected]>
Change-Id: I4da8748a992d8f95e3f7e782843c862277597c3d
Summary
TODO
Checklist
make prettier-writeand formatted the code.make checkmake runand manually verified that everything looks okay