ios - NSURLConnection willSendRequestForAuthenticationChallenge persistence -


the (soon deprecated) nsurlconnectiondelegate allows handle tls trust challenge so:

-(void)connection:(nsurlconnection *)connection willsendrequestforauthenticationchallenge(nsurlauthenticationchallenge *)challenge {     if ([challenge.protectionspace.authenticationmethod isequaltostring:nsurlauthenticationmethodservertrust])         [challenge.sender performdefaulthandlingforauthenticationchallenge:challenge]; } 

assuming same x509 certificate being presented same server, testing shows effect of method cached duration of application execution. method not hit again.

is there way force application forget effect of method after handling has occurred, such subsequent hits same web service force method called?

i think i'm using [challenge.sender cancelauthenticationchallenge:...].


Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -