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

Enhancement : Check Clock Alignment #52

Closed
wants to merge 50 commits into from

Conversation

rawmain
Copy link
Contributor

@rawmain rawmain commented Oct 29, 2021

Adding Clock Alignment checks between device and server.

If there is a sync-gap > 2 minutes between scanning device time and server :

  • Response Code -> 403
  • Response Header x-clock-sync -> falso
  • Sets new shared preference isClockAligned value to false
  • Resets shared preference dateLastFetch value

Linked to Issue #38

Adding Clock Alignment checks between device and server.

If there is a sync-gap > 2 minutes between scanning device time and server :

- Response Code -> 403
- Response Header x-clock-sync -> falso
- Sets new shared preference isClockAligned value to false
- Resets shared preference dateLastFetch value
rawmain added a commit to VC19chk/it-dgc-verificaC19-android-TIME that referenced this pull request Oct 29, 2021
Added intentFilter broadcast receiver to check whether deviceTime has been manually changed/overrided while the app is running.

P.S.: if/when combined with ministero-salute/it-dgc-verificac19-sdk-android#52 the device-server time mismatch will prevent the QR scan.
@astagi astagi requested review from danielsp3000, nicola-95 and Light2288 and removed request for danielsp3000 and nicola-95 November 23, 2021 15:57
rawmain added a commit to VC19xp/it-dgc-verificac19-sdk-android-XP that referenced this pull request Feb 4, 2022
Enabled Time check device vs server (real time)

PR52 DGC-SDK

ministero-salute#52
@stale
Copy link

stale bot commented May 21, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label May 21, 2023
@stale stale bot closed this May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant