X
X
xTuMoHx2021-10-17 19:34:49
Android
xTuMoHx, 2021-10-17 19:34:49

[Xamarin.Forms] How to get cookies/session from WebView?

I am writing an application for working with Jira (SD, Insight) and the problem is that from the internal network there is direct access to Jira, and from the external network through Netscaler, with 2FA authentication.

Now I just implemented an HttpClient that step by step knocks on the required URLs to authenticate on NetScaler and after going through all the steps I can work with the Jira API.

Is it possible to somehow parse cookies from a WebView and pass them to the HttpClient to work with the API, or implement something similar in other ways?
(for the user, a browser will open natively with authentication on the balancer-> fat / fat)

UPD: There is a WebView.Cookies property, but if you access it, it is empty

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question