{"id":22122615,"url":"https://github.com/thorgate/esteid-helper","last_synced_at":"2025-10-25T10:10:14.533Z","repository":{"id":30124605,"uuid":"33674564","full_name":"thorgate/esteid-helper","owner":"thorgate","description":"Small utility functionalities to do digital signing","archived":false,"fork":false,"pushed_at":"2023-07-26T09:28:22.000Z","size":223,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-04-08T15:37:49.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thorgate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-09T14:45:38.000Z","updated_at":"2020-11-20T09:07:54.000Z","dependencies_parsed_at":"2022-08-17T17:45:13.794Z","dependency_job_id":null,"html_url":"https://github.com/thorgate/esteid-helper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorgate%2Festeid-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorgate%2Festeid-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorgate%2Festeid-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thorgate%2Festeid-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thorgate","download_url":"https://codeload.github.com/thorgate/esteid-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227584239,"owners_count":17789672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T15:26:46.688Z","updated_at":"2025-10-25T10:10:14.470Z","avatar_url":"https://github.com/thorgate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esteid-helper\n\n### Configure\n\n```\nIdentificationManager({\n    idUrl: \"the url that is used for ID Card signing\",\n    mobileIdUrl: \"the url that is used for MobileID signing\",\n    smartIdUrl: \"the url that is used for SmartID signing\",\n    language: \"A language supported by *ID, one of ENG, EST, LIT, RUS\",\n    csrfToken: \"the Django csrf token to add to POST/PATCH requests\",\n})\n```\n\n### Initialize signing\n\n- ID card: `manager.signWithIdCard().then(() =\u003e {})`;\n- MobileID: `manager.signWithMobileId({idCode, phoneNumber}).then(() =\u003e {})`;\n- SmartID: `manager.signWithSmartId({idCode}).then(() =\u003e {})`.\n\nThe methods accept an object with required data and the `csrfMiddlewareToken` \nfor POST/PATCH requests to succeed, and return a Promise.\n\nThe methods issue a signature preparation request to the backend with payload dependent on the signature provider.\n- ID card: `certificate`: hex-encoded signer certificate obtained from the ID card through the `hwcrypto.js` library;\n- MobileID: `id_code`, `phone_number` obtained from user input;\n- SmartID: `id_code` obtained from user input.\n\n### Status\n\n- ID card: not necessary. \n- MobileID: `manager.midStatus()`\n- SmartID: `manager.smartidStatus()`\n\nThe methods return a Promise that resolves with a `data` object obtained from the final status response.\nThe response is expected to contain a `status` property which will also be translated to a `success` property\nof the `data` object. Besides, it may any data that the backend and frontend agree upon.\n\nThe methods issue a signature finalization request to the backend with payload dependent on the signature provider.\n- ID card: `signature_value`: hex-encoded signature obtained from the ID card through the `hwcrypto.js` library;\n- MobileID: no data;\n- SmartID: no data.\n\nIf the finalization request results in a `202 Accepted` HTTP response, the request will be repeated after a timeout.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorgate%2Festeid-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthorgate%2Festeid-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthorgate%2Festeid-helper/lists"}