Skip to content

fix: parse signer_id from sign URL fragment#20

Merged
BotCapSens merged 1 commit into
feat/v2from
fix/signer-id-from-url-fragment
Jun 3, 2026
Merged

fix: parse signer_id from sign URL fragment#20
BotCapSens merged 1 commit into
feat/v2from
fix/signer-id-from-url-fragment

Conversation

@ismaelbks

Copy link
Copy Markdown

Problème

Universign renvoie désormais l'URL de signature avec l'id du signataire dans le fragment (https://app.universign.com/sig/#/?id=...) et non plus dans la query string.

Transaction#signer_id lisait uniquement URI(sign_url).query, qui est nil pour ces URLs → signer_id renvoyait nil. Les consommateurs (ex. Swissroc) ne pouvaient plus identifier le signataire : le flux de signature restait bloqué silencieusement (aucune exception levée).

Correctif

signer_id lit l'id depuis la query OU le fragment, ce qui couvre les URLs legacy (.../signature/?id=...) et app.universign.com (.../sig/#/?id=...).

Tests

  • Nouveau test couvrant le format app.universign.com (id dans le fragment).
  • Suite complète : 61 exemples, 0 échec, 100% de couverture (lignes + branches).

Universign now returns the signing URL with the signer id in the fragment
("https://app.universign.com/sig/#/?id=...") instead of the query string.
URI#query was nil for these URLs, so Transaction#signer_id returned nil and
callers could not identify the signer. Read the id from the query or the
fragment so both legacy and app.universign.com URLs are supported.
@BotCapSens BotCapSens merged commit 35b2d32 into feat/v2 Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants