FusionAuth / fusionauth-android-sdk

Android SDK for FusionAuth
https://fusionauth.io
Other
3 stars 1 forks source link

Add Device Authorization Grant #30

Open ColinFrick opened 7 months ago

ColinFrick commented 7 months ago

Adds the Device Authorization Grant.

Current workflow:

  1. Use deviceAuthorize() to start the Device Authorization Flow
  2. Display verification link and user code, or QR code with full verification link in the app
  3. Call getDeviceFusionAuthState(), this starts a Flow that polls the back end until the user has logged-in using the verification link and user code, or the link has expired
  4. Finally, verify logged in status and navigate to Activity

Things that are not yet implemented

Because this is not covered by AppAuth implementation, I've marked it with an ExperimentalApi decorator.

Related PR on AppAuth openid/AppAuth-Android#763

mooreds commented 7 months ago

Hiya, I'd rather focus on getting this SDK shipped with equivalent functionality to AppAuth and not moving forward with new features. We still have the iOS SDK to implement as well. Then we can come back and discuss new features.