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

Allow setting setUserAuthenticationValidityDurationSeconds #63

Open
pesonsita opened this issue Jul 21, 2017 · 4 comments
Open

Allow setting setUserAuthenticationValidityDurationSeconds #63

pesonsita opened this issue Jul 21, 2017 · 4 comments

Comments

@pesonsita
Copy link

Hello,

I want to know if its possible to set setUserAuthenticationRequired and setUserAuthenticationValidityDurationSeconds from the dependence. From that what I can see, I don't have the possibility to set this, is that right? If yes, how??

Thanks in advance

@Mauin
Copy link
Owner

Mauin commented Jul 21, 2017

setUserAuthenticationRequired is set by default for all Ciphers used for encryption/decryption in RxFingerprint (both AES and RSA).
It is indeed not possible to provide a value for setUserAuthenticationValidityDurationSeconds at the moment.
However I'm currently thinking about a refactor to enhance the public API of RxFingerprint to open up more customization to the users of RxFingerprint. I'll take setUserAuthenticationValidityDurationSeconds into account for that as well.

@pesonsita
Copy link
Author

Thanks for your quickly answer.
It would be nice to have more customization possibilities.
Nice API 👍

Thank you

@iprasla
Copy link

iprasla commented Dec 4, 2017

I would be interested in having the authentication validation duration set. In my case, once I authenticate the user, I present the user account selection (user credentials saved) to be able to retrieve encrypted credentials. With current limitations, I need to present user twice with fingerprint sensor. First for prior to account selection and second time when retrieving the credentials.

@Mauin
Copy link
Owner

Mauin commented Dec 5, 2017

This would be a great addition to RxFingerprint. To not further add more overloaded methods to RxFingerprint for encryption/decryption I think this would be a great configuration to have in the Builder pattern I started working on in #72.
Then the builder could take an additional method: builder. setUserAuthenticationValidityDurationSeconds(duration) to set this up and use this value for all encryption/decryption operations.

@Mauin Mauin changed the title Authentication Required Allow setting setUserAuthenticationValidityDurationSeconds Dec 12, 2017
@Mauin Mauin added 3.x and removed question labels Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants