0

How I can Open SharePoint URL in UIWebView - Embedding credential into URL request to avoid prompt for credential. I am developing small application which can open specified SharePoint site URL without manually passing require credential. The URL I am trying to open needs credential but I want to embed these credential to the request I will make to open the URL ins UIWebView control. I don't want to open the URL in Safari.

In Simple words. I need to authenticate in the background. The user should navigate directly into the Sharepoint list page.

StezPet
  • 2,430
  • 2
  • 27
  • 49

1 Answers1

0

If you have the credentials on hands and the form authentication implementation, you could

  1. login using HttpClient on behalf of the user
  2. extract the cookie from HttpResponseMessage
  3. set the cookie to NSHttpCookieStorage
Alex Lau
  • 1,687
  • 10
  • 17
  • How I can set the Cookie into UIWebView NSHttpCookieStorage – StezPet Mar 05 '15 at 17:14
  • To set cookie, you may refer to http://stackoverflow.com/a/9417016/4599907 **(Note: The accepted answer there is outdated. Look at the answer posted by @poupou)** – Alex Lau Mar 06 '15 at 01:06