0

I have created an android app that is using a custom-rolled authentication method by calling a web service (webapi on .net mvc 4) with HttpClient. When the user is authenticated, the action method on the server is setting the forms authentication cookie and then returns a user model back to the android client. That user model contains the internal user id and a few other properties.

After the user is authenticated, I'm opening up a WebView on android to serve up a viewport for some simple navigation elements. That WebView needs to be handed the authentication cookie from the webapi call in the previous step. I assume that the forms authentication cookie is being held in the HttpClient (though I can't confirm this) and if so, is there a way to pass that cookie over to the WebView so the web page that is served up in the WebView knows who the user is based on the first step?

If this isn't possible, can someone guide me with some steps to make this work.

TIA

Christopher Johnson
  • 2,629
  • 7
  • 39
  • 70

1 Answers1

0

This looks like a very similar problem. Set a cookie to a webView in Android.

Hopefully this can assist you.

Community
  • 1
  • 1
Mark Jones
  • 12,156
  • 2
  • 50
  • 62