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

chore(bo): [SFEQS-1984] Add tokenizer #194

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

silvicir
Copy link
Contributor

@silvicir silvicir commented Sep 1, 2023

List of Changes

  • In /packages/io-sign:
    1. updated apiKeySchema with testers as an array of uuid and createApiKeyPayloadSchema with testers as an array of fiscalCodeSchema
  • In /apps/io-sign-backoffice-app/:
    1. In .env file, added variables PDV_TOKENIZER_API_BASE_PATH and PDV_TOKENIZER_API_KEY
    2. In /src/lib, added pdv-tokenizer.ts file with getTokenFromPii, getPiiFromToken and getTokenizerHealth functions
    3. In /src/lib/api-keys/use-cases.ts, added upsertApiKeyField and updated createApiKey functions that get tokens from fiscal codes before inserting on database. updated listApiKeys and getApiKeyWithSecret functions that get fiscal codes from tokens before returning api key to the client

Motivation and Context

Now the signerId will be saved on the database instead of the citizen's fiscal code

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@changeset-bot
Copy link

changeset-bot bot commented Sep 1, 2023

⚠️ No Changeset found

Latest commit: 897ff63

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@swarmia
Copy link

swarmia bot commented Sep 1, 2023

✅  Linked to Story SFEQS-1984 · Implementare il tokenizer CF sul BO
➡️  Part of Epic SFEQS-510 · Back-office Firma con IO

@silvicir silvicir marked this pull request as draft September 1, 2023 15:09
@silvicir silvicir marked this pull request as ready for review September 1, 2023 15:10
@silvicir silvicir changed the title Sfeqs 1984 add tokenizer chore(bo): [SFEQS-1984] Add tokenizer Sep 1, 2023
@github-actions github-actions bot added the chore label Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants