NSURLCredential is an immutable object representing an authentication credential consisting of authentication information specific to the type of credential and the type of persistent storage to use, if any.
Questions tagged [nsurlcredential]
67 questions
0
votes
2 answers
NSCredential in UIAlertView to connect to a WebService
I have a NavigationController that hold ViewControllers, but I want that to access to some ViewControllers an authentification via an UIAlertView. (Some ViewControllers content need a authentification).
That UIAlertView will send data to a…

Crossmax
- 58
- 1
- 7
0
votes
1 answer
Server Trust Issue
Our app is in production and today we came across an issue "The Certificate for this server is invalid. You might be connecting to a server that is pretending to be “server.name” which could put your confidential information at risk.
We are using…

nkongara
- 1,233
- 8
- 14
0
votes
1 answer
NSURLCredentialStorage sharedCredentialStorage does not return valid credential
I have a problem with the sharedCredentialStorage. It won't return the expected credential, even having all parameters of protection space (host, port,...) the same as the one I have set before.
Code to set the defaultCredential:
NSURLCredential*…

Lauro Wolff Valente Sobrinho
- 841
- 7
- 17
0
votes
1 answer
Bypass self signed certificate with NSURLCredential while also passing in a username and password
NSURLCredential *credential2 = [NSURLCredential
credentialForTrust:challenge.protectionSpace.serverTrust
credentialWithUser: @"username"
password: @"password"
…

ZeroSkittles
- 164
- 1
- 3
- 16
0
votes
1 answer
How to get cookie from Webserver and maintain it in iOS app?
I would like to to get fetch JSON from http://mycompany.com/page1...http://mycompany.com/page2... On the the webserver side, it requires initial login http://mycompany.com/login, and after that a cookie is maintained for the user. How do I get this…

ironman2012
- 19
- 2
- 6
0
votes
1 answer
Logging in and logging out in an iOS app
New developer here . . .
In my iOS app, I want to implement a simple log-in screen that will allow the user connect to a web service that requires authentication. My plan is to create an NSURLCredential, and provide that to the web service. That…

Sean Danzeiser
- 9,141
- 12
- 52
- 90
-1
votes
1 answer
Check if NSURLCredential exists
I'm looking for a way to check if a concrete NSURLCredential is stored in my app. I'm trying to get it from NSURLCredentialStorage but I'm not founding the way to do it. Do you know if there is a way to check it?
Thanks.

Alex
- 6,957
- 12
- 42
- 48