okta / samples-android

samples-android
https://github.com/okta/samples-android
Apache License 2.0
37 stars 52 forks source link

Update legacy browser-sign-in sample to use new SDK #83

Closed rajdeepnanua-okta closed 2 years ago

rajdeepnanua-okta commented 2 years ago

Update browser-sign-in sample to use new kotlin SDK. The sample is similar to https://github.com/okta-samples/okta-android-kotlin-sample, but has the following differences:

  1. All imports are declared in libs.versions.toml (except for one in gradle-wrapper.properties)
  2. Refactored BrowserSignInViewModel states to be simpler for consumption by BrowserSignInActivity
  3. Added a button for fetching and displaying user info when the user is logged in

Bulk of the changes are in BrowserSignInActivity, BrowserSignInViewModel, build.gradle, and libs.versions.toml.