Comments (5)
The bug is probably in EncryptedSharedPreferences
from androidx.security:security-crypto
. See more:
https://issuetracker.google.com/issues/164901843?pli=1
However it would be nice if you can think about some workaround for it, because otherwise we risk a crash on startup in our app, after implementing OKTA Push SDK in the way how do you suggest it in the sample.
from okta-devices-kotlin.
Hi @pkrawczykObj For testing you can disable encryption by using shared preference.
private val sharedPreferences: SharedPreferences = app.getSharedPreferences(passphraseSharedPref, Context.MODE_PRIVATE)
Replace encrypted shared preference with shared pref in
from okta-devices-kotlin.
Ok and what are your recommendations for production version of the app to avoid this issue?
from okta-devices-kotlin.
Ok and what are your recommendations for production version of the app to avoid this issue?
The android encryption library uses tink and it looks like it has issues https://issuetracker.google.com/issues/158234058
My recommendation is try 1.1.0-alpha06 which was released yesterday. This updated tink to 1.8.0.
If that doesn't fix the issue then writing own encryption is another option.
from okta-devices-kotlin.
Your recommendation does not fixed the issue and I switched to my own encryption. Maybe it would be worth to mention about it in Readme or change the sample implementation, because it caused the app crash on startup, which can be really painfull.
from okta-devices-kotlin.
Related Issues (7)
- test bug report
- test feature
- Duplicate class a.a found in modules jetified-devices-core-0.0.1-runtime (com.okta.devices:devices-core:0.0.1) HOT 3
- Cannot build app with this SDK without data@scheme attribute in AndroidManifest HOT 7
- User can still see Push notification enrollment method on the web, after deleting enrollment with SDK HOT 24
- retrievePendingChallenges method configuration issues HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okta-devices-kotlin.