I'm creating an Android App using Java in Android Studio that will need to use OAuth2 to communicate with a 3rd-Party provider (Furkot, mobile method) to gain authorization for subsequent API calls.
Using Open Id's AppAuth demo application (https://github.com/openid/AppAuth-Android) the demo app successfully:
- Sends the authentication REQUEST for a TOKEN from the Furkot Server
- Prompts user to login to Furkot
- Prompts user to allow read-only access to Furkot data
- [Furkot successfully sets the application as an allowed application]
- Receives the RESPONSE with the TOKEN value at the redirect_uri in a parameterized URL
- Shows the full responseUri value in the RedirectUriReceiverActivity during debug.
Somewhere between the
RedirectUriReceiverActivity
and the
TokenActivity.onStart() AuthorizationResponse response = AuthorizationResponse.fromIntent(getIntent());
the code decides that the response is NULL so errors.
And I can't figure out where it's doing that to be able to troubleshoot further. Debugging and stepping into this section gets me nothing of value to my brain.
~~~~~~~ Caveat: while I have 13+ years experience developing C# .NET applications, this is my first Android app and first time working in Java. So I'm swimming a bit out of my comfort zone. ~~~~~~~
If anyone has experience -- very specifically with the Open Id AppAuth demo application -- and can assist, it would be greatly appreciated!