iphone - NTLM authentication from ios Client -


I have a web service in the net, for which NTLM (Windows based on IIS server) Authentication may be accessed. How can I NTLM-authenticate from the iOS client?

you can create

this representative (NSURLConnection *) connection willSendRequestForAuthenticationChallenge: (NSURLAuthenticationChallenge *) challenge

Challenge

  [challenge.protectionspace.authenticationmethodEqualToString: NSURLAuthenticationMethodNTLM]   

If it is from NTLM, send credentials

  NSURLCredential * credentail = [NSURL Credential Credential with User: & lt; Your username & gt; Password: & lt; Your password & gt; Persistence: NSURLCredentialPersistenceForSession]; [[Challenge Sender] User Central: credentail forAuthenticationChallenge: _challenge];    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -