izd / kiva

2 stars 0 forks source link

Oauth (Part 2) #31

Closed zackhsi closed 9 years ago

zackhsi commented 9 years ago

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.

danielhochman commented 9 years ago

+1 for dirty merge

zackhsi commented 9 years ago

:tractor: