-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
TOTP period
parameter is ignored
#2276
Comments
It's a limitation of the OTP library we use. We might be able to switch to https://pkg.go.dev/github.com/pquerna/otp#NewKeyFromURL that seems to export the |
A quick look seems to indicate we might really have multiple issues here, it seems:
|
dominikschulz
added a commit
to dominikschulz/gopass
that referenced
this issue
Jul 18, 2022
RELEASE_NOTES=[BUGFIX] Use OTP key period Fixes gopasspw#2276 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
dominikschulz
added a commit
to dominikschulz/gopass
that referenced
this issue
Jul 18, 2022
RELEASE_NOTES=[BUGFIX] Use OTP key period Fixes gopasspw#2276 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
dominikschulz
added a commit
to dominikschulz/gopass
that referenced
this issue
Jul 20, 2022
RELEASE_NOTES=[BUGFIX] Use OTP key period Fixes gopasspw#2276 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
dominikschulz
added a commit
to dominikschulz/gopass
that referenced
this issue
Jul 20, 2022
RELEASE_NOTES=[BUGFIX] Use OTP key period Fixes gopasspw#2276 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
dominikschulz
added a commit
to dominikschulz/gopass
that referenced
this issue
Jul 21, 2022
RELEASE_NOTES=[BUGFIX] Use OTP key period Fixes gopasspw#2276 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
dominikschulz
added a commit
to dominikschulz/gopass
that referenced
this issue
Jul 23, 2022
RELEASE_NOTES=[BUGFIX] Use OTP key period Fixes gopasspw#2276 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
dominikschulz
added a commit
that referenced
this issue
Aug 2, 2022
* Use github.com/pquerna/otp to allow using the key period RELEASE_NOTES=[BUGFIX] Use OTP key period Fixes #2276 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Address review comments. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Implement digits and algorithm parameter parsing Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Use proper formatting and add logging Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Make linters happy Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
I configure a TOTP token with a custom
period
(other than 30).Unfortunately, gopass currently uses a hardcoded default value of 30:
https://github.com/gopasspw/gopass/blob/master/internal/action/otp.go#L23
Steps To Reproduce
Add a secret with a TOTP and
period=60
like the following:Then retrieve the current token:
with a period of 30, instead of the period length of 60 given via the
otpauth://
URI.Expected behavior
Use the
period
-value as given via theotpauth://
URI.Environment
Additional context
The text was updated successfully, but these errors were encountered: