Implemented OktaStateManager.WriteToSecureStorageAsync which uses Xamarin.Essentials.SecureStorage to write a json representation of OktaStateManger to secure storage.
Refactored OktaMainActivity and OktaAppDelegate to change initialization process.
Added convenience methods to OktaContext to manage loading and saving state.
Added initialization related events to OktaContext
Added secure storage related events to OktaContext
Added unit tests
Note - Tokens are not automatically stored and retrieved in secure storage; this implementation allows one to subscribe to the appropriate events and make the appropriate method calls to store tokens in secure storage if one chose to do so.
OktaStateManager.WriteToSecureStorageAsync
which usesXamarin.Essentials.SecureStorage
to write a json representation ofOktaStateManger
to secure storage.OktaMainActivity
andOktaAppDelegate
to change initialization process.OktaContext
to manage loading and saving state.OktaContext
OktaContext
Note - Tokens are not automatically stored and retrieved in secure storage; this implementation allows one to subscribe to the appropriate events and make the appropriate method calls to store tokens in secure storage if one chose to do so.
https://user-images.githubusercontent.com/63638027/128194370-5a6e7550-7a8a-4be9-98b1-35d555f576f7.mp4