protected internal virtual void onPostExecute(string jsonResponse) { Log.v(outerInstance.TAG, "onPostExecute:"); // Parse the JSON response, get the first IDP and pass it to the webview activity // to load the login page. IList <string> idps = new List <string>(); Gson gson = new Gson(); ChooserResponse response = gson.fromJson(jsonResponse, typeof(ChooserResponse)); IEnumerator it = response.PossibleIdps.SetOfKeyValuePairs().GetEnumerator(); while (it.hasNext()) { DictionaryEntry pairs = (DictionaryEntry)it.next(); idps.Add(pairs.Key.ToString()); it.remove(); } Intent intent = new Intent(outerInstance, typeof(WebViewActivity)); intent.putExtra(AIS_TARGET_URL, outerInstance.initUrl + idps[0]); startActivityForResult(intent, WEBVIEW_ACTIVITY); }
public IdentityProvider(ChooserResponse outerInstance) { this.outerInstance = outerInstance; }
public IdentityProvider(ChooserResponse outerInstance) { this.outerInstance = outerInstance; }