-
Notifications
You must be signed in to change notification settings - Fork 45
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
Want to disable biometric without logout user. #344
Comments
Hello @rajeshjadidminc, Have you tried using migrateTo(EncryptionManager) Note there is a new Android SDK that all new projects should start with and existing projects should begin to migrate to, I believe at this point okta-oidc-android is mostly in a security only patch state. New Mobile SDK announcment, |
Hi @rajeshjadidminc, we currently don't have a sample for enabling biometrics in okta-mobile-kotlin. Adding that is my top priority currently, and I will notify you once I have a working sample. |
@rajeshjadidminc, I have a commit up for how to do this using okta-mobile-kotlin here: okta/samples-android@420000d. The linked commit makes changes to our browser_sign_in sample to show how to switch between biometric and non-biometric encryption. CredentialTokenStorage.kt in the linked commit helps switch between different SharedPreferences, and BiometricCredentialsManager calls CredentialTokenStorage to switch between SharedPreferences with different encryption. Please let me know if this helps with your implementation. |
Thanks for the update, I have verified the branch and working fine. Just quick question regarding the session timeout. Normal banking domain applications are managing sessions with custom API to check whether the session running or not, but in our case, we are using a redirection approach.
Is there a predefined method to check this scenario? Please provide your valuable input. |
Describe the feature request.
I have implemented this demo and it's working fine with enabling the biometric.
I want the user to disable biometrics once it's enabled by the user.
In the current implementation when I disable biometrics it will force me to log out.
biometrics
New or Affected Resource(s)
I want to enable/disable features inside the app without logging out users from the app.
Provide a documentation link
No response
Additional Information?
This function forces me, log out user, due to change the defaultEncryptionManager.
currentEncryptionManager?.removeKeys()
sessionClient.clear()
currentEncryptionManager = defaultEncryptionManager
try { //set the encryption manager back to default.
sessionClient.migrateTo(currentEncryptionManager)
} catch (e: AuthorizationException) { //NO-OP
}
showSignedOutMode()
Please give me suggestion asap so i can plan to purchase okta .
The text was updated successfully, but these errors were encountered: