TominoLP / 2FA-API

A simple API to generate QR codes and validate the user input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could you add a drift for validation method?

dpastov opened this issue · comments

So when we validate TOTP on server, I want to be able to set -2 mins to +2 mins to avoid possible misconfig in time?

Im not completly shure what you mean...
Like a Toleranz Windows ?
@dpastov

@TominoLP Yes.
Imagine a server where we validate totp is 1 minute behind of real time. so we need to be able to set a window like checking code from -2 mins to now and to +2 mins.

Thanks for the clarification. I understand the concept now, and I'll make sure to implement it today evening if I can find the time to do so.
@dpastov

If you can make it today or Monday morning would be great :-)

Im sorry but i dont have the time today,
I'm going to have a lot of stress in the next week, I can't say whether I have time to make the changes, but you're welcome to find a solution yourself and do a PR

if you use the newest version pls note that the TOTP validation method is not under TOTP. and not AuthSys.

@TominoLP thanks, I can update the solution if I make it run with Java8 on my server (it still throw an error).

Version 1.3.1 runs at V8 Just fine for me , can you provide me with more Details?

@dpastov can you provide me The error and then Version you are currently using, then i may be able to reproduce it and Help you

Please Open a new issue for that

I have fixed the error, but in my case I had to pack all dependencies into jar and it's relatively big...