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

Scratch codes #25

Open
ohmer1 opened this issue Jan 26, 2018 · 3 comments
Open

Scratch codes #25

ohmer1 opened this issue Jan 26, 2018 · 3 comments

Comments

@ohmer1
Copy link

ohmer1 commented Jan 26, 2018

Hello,

Is there a way to support scratch codes generated by google authenticator?

@calve
Copy link
Contributor

calve commented Jan 31, 2018

AFAIU crash code are pregenerated HOTP. Those are supported by openvpn-otp.

@ohmer1
Copy link
Author

ohmer1 commented Jan 31, 2018

I tried the generated codes but they are not working. I don't know if this is related, but the generated scratch codes have 8 digits but normal codes have only 6.

I use Google Authenticator to generate OTP keys:
google-authenticator --time-based --disallow-reuse --force --rate-limit=3 --rate-time=30 --window-size=17 --label=${USER}@sdomain.tld --secret=/root/ovpn2fa_secret

@calve
Copy link
Contributor

calve commented Apr 20, 2018

Looks like you can configure the lenght of codes with the totp_digits param (see readme) but it might apply to both HOTP and TOTP https://github.com/evgeny-gridasov/openvpn-otp/blob/master/src/otp.c#L619

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

No branches or pull requests

2 participants