Sets up the flow, but still no access token. :dizzy_face:
When we go to screens that require authentication, we launch a dialog fragment containing a webview.
We get a request token and ask the user to log in.
This part doesn't work properly: When they log in and authorize, the webview should be redirected to a new url with a code in the querystring. We hook in to that with WebView shouldOverrideUrlLoading, then ask Kiva for an access token in exchange for the code.
When that's successful, we do whatever the listener wants, such as launch the Profile Activity.
Sets up the flow, but still no access token. :dizzy_face:
When we go to screens that require authentication, we launch a dialog fragment containing a webview.
We get a request token and ask the user to log in.
This part doesn't work properly: When they log in and authorize, the webview should be redirected to a new url with a code in the querystring. We hook in to that with WebView
shouldOverrideUrlLoading
, then ask Kiva for an access token in exchange for the code.When that's successful, we do whatever the listener wants, such as launch the Profile Activity.