CAAPIM / Android-MAS-SDK

Install and use the Mobile SDK for Androidâ„¢
Other
14 stars 22 forks source link

De506139 code verifier store in shared pref account mgr util change develop #395

Closed arindamhit closed 3 years ago

arindamhit commented 3 years ago

This is for the develop branch.. Issue: Presently Code verifier is getting generated and stored in Memory cache. When mobile app which is built using SDK calls another external app for authentication, it goes to background. In some cases, it is getting killed by the OS. Due to this, code verifier, which is stored in memory cache is getting lost.

Fix: SDK has a support for Shared Preference which is persistent local database for Android. Implemented the shared preference and storing the code verifier and the state. This will ensure that the values will be present although app is in background or getting killed by any chance.

We are adding a check for Null Pointer Exception for the Password and Account Name field while creating the account