Skip to content

Conversation

vitormattos
Copy link
Member

@vitormattos vitormattos commented Sep 22, 2025

Objective

Allow requesting a document signature by adding a WhatsApp number (or another configured gateway) and sending the signing link directly to this number.

⚠️ For WhatsApp, this implementation uses WhatsApp Web and not the WhatsApp Business API.


How to test

  • Install the twofactor_gateway app.
    • For now will be necessary to use the master branch of this app.
  • Configure a gateway (e.g., WhatsApp or SMS).
  • Go to LibreSign Administration Settings.
  • Enable the signature method related to the configured provider in Twofactor Gateway.
    • Only the providers that are configured will appear as signature methods.
  • Follow the usual steps to request a document signature.

Administration settings

Only the gateways configured in the Twofactor Gateway app will be visible.

Screenshot_20250923_094436

Sign request flow

  • The Add signer screen has been improved for a better UX and now is a dialog.
  • Signature methods are now organized into tabs.
  • Only the identity methods enabled in Administration Settings will be shown.

👉 Don’t worry about the number of tabs, in most scenarios there will be no more than three. For demonstration purposes, all available methods were enabled to show compatibility with multiple signature request options.

Screenshot_20250923_095248
  • The chosen signature method will now appear as a label under the signer’s name.
image
  • After finishing the sign request flow, the signer will receive the signing link via the selected service:
image

To-do

  • Implement unit tests
  • Implement integration tests
  • Add a new gateway to sign with Telegram at Twofactor Gateway but now using the client API of Telegram

@vitormattos vitormattos added this to the Next Major (33) milestone Sep 22, 2025
@vitormattos vitormattos requested a review from Copilot September 22, 2025 19:02
@vitormattos vitormattos self-assigned this Sep 22, 2025
@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Sep 22, 2025
Copilot

This comment was marked as resolved.

@vitormattos vitormattos force-pushed the feat/sign-using-twofactor_gateway branch from 0b14fe3 to 63f7d9c Compare September 22, 2025 20:39
@vitormattos vitormattos requested a review from Copilot September 22, 2025 20:39
Copilot

This comment was marked as resolved.

@vitormattos vitormattos requested a review from Copilot September 22, 2025 21:26
Copilot

This comment was marked as resolved.

Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
At context of LibreSign search, the field shareType need to be the sign
method.

Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos requested a review from Copilot September 23, 2025 11:32
Copilot

This comment was marked as resolved.

only is valid if the result have a method and the method is not empty

Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos requested a review from Copilot September 23, 2025 11:48
Copilot

This comment was marked as resolved.

fix #5459 (comment)

Signed-off-by: Vitor Mattos <[email protected]>
fix #5459 (comment)

Signed-off-by: Vitor Mattos <[email protected]>
fix #5459 (comment)

Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Copilot

This comment was marked as resolved.

* Send a file
*
* Send a new file to Nextcloud and return the fileId to request to sign usign fileId
* Send a new file to Nextcloud and return the fileId to request to signature
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Send a new file to Nextcloud and return the fileId to request to signature
* Send a new file to Nextcloud and return the fileId to request signature

}

private function formatForNcSelect(array $list): array {
$return = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$return doesn't sound very descriptive, maybe $formattedList would be better.

@github-project-automation github-project-automation bot moved this from 0. Needs triage to 1. to do in Roadmap Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 1. to do
Development

Successfully merging this pull request may close these issues.

3 participants