4

I enabled both client side flow and desktop oauth redirect url, and manage to get the user login and get redirected to https://stackexchange.com/oauth/login_success#access_token=xxxxx

But how can i manage this webview and parse from android... my activity from the android manifest manages the data url like but nothing is happening...

1 Answer 1

7

You need to have a data filter for the activity that you call the authentication URL in the manifest like:

<data android:host="stackexchange.com" android:pathPrefix="/oauth/login_success" android:scheme="https" /> 

The activity also needs to override the onResume function for you to parse the URL and get the access token from the URI.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.