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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -