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

Fix totp drift #2052

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Fix totp drift #2052

merged 1 commit into from
Mar 30, 2023

Conversation

cleverer
Copy link
Contributor

@cleverer cleverer commented Mar 26, 2023

Resolves #1830

Die library erlaub auch ein drift_ahead (https://rubydoc.info/github/mdp/rotp/master/ROTP%2FTOTP:verify). Daraus schliesse ich, dass die drift parameter nur das jeweilige ende es slots verschieben und nicht den ganzen slot.

Der Code akzeptiert einen Time-Drift von maximal +/- 15 Sekunden. Das RFC zum TOTP spricht von bis zu 60s Verschiebung… (6. Resynchronization, https://www.ietf.org/rfc/rfc6238.txt). Ich denke das sollte aber reichen um das Problem zu umgehen.

@cleverer cleverer force-pushed the fix-totp-drift branch 3 times, most recently from 9ca66c5 to 3467571 Compare March 26, 2023 02:38
@cleverer cleverer marked this pull request as ready for review March 26, 2023 02:44
Copy link
Member

@carlobeltrame carlobeltrame left a comment

Choose a reason for hiding this comment

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

Thank you!

@carlobeltrame carlobeltrame merged commit f039f16 into hitobito:master Mar 30, 2023
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.

2FA: erster Versuch schlägt meist fehl
2 participants