2

I'm having trouble authenticating and getting hold of the auth token when trying to hook up to a Microsoft Share Point service.

Does anyone have a working example for me or some hints as to how to correctly obtain a auth token?

Thanks!

4

2 回答 2

1

There is a Robert Kuzma blog post about NTLM authentication from iOS to SharePoint. Some additional information on selecting the preferred authentication method can be found here.

To summarize, use the didReceiveAuthenticationChallenge callback from NSURLConnection.

If that doesn't help you, please be specific in what your authentication troubles are.

于 2013-09-11T12:19:32.173 回答
0

I found two very important links which are useful to get the solution. The links are:

1. Using UIWebView

Here, I only need to pass a URL to UIWebView. If the URL is openable, Office 365 login view will open on your UIWebView, where you can enter your login credentials. You can find the full description with related code at here.

An other solution is

2. Creating your own UI for login

Here, you have to design your own UI and full manual code to authenticate. You can find all the required help related to code, I can say full code from here.

于 2017-01-31T05:09:22.370 回答