• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Changing Account Mid-Session with HTTP Authentication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing Account Mid-Session with HTTP Authentication


  • Subject: Changing Account Mid-Session with HTTP Authentication
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 7 Nov 2007 09:52:44 -0800

Even if, in response to connection:didReceiveAuthenticationChallenge, I give NSURLConnection a credential with persistence NSURLCredentialPersistenceNone, I still find that subsequent connections to a server do ^not^always^ give me additional connection:didReceiveAuthenticationChallenge messages. Therefore, if I have more than one user account with that server, how can I arbitrarily change accounts in the middle of a session?

Because this all goes on under the hood of NSURLConnection, I can't see what's happening with subsequent requests. Either

(a) NSURLConnection is sending a stored credential with subsequent requests,
or (b) the server is skipping its 401 authentication request, ("I know you"),
or (c) NSURLConnection is responding to subsequent 401s with a stored credential.


If I knew what was going on, (a) (b) or (c) I could at least point my finger and ask some intelligent questions.

I can't read the answer using tcpflow because this is https, encrypted.

I'd much appreciate any help in any of the above directions.

Jerry Krinock
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Login information for VPN connections
  • Next by Date: kqueue, multithreading and architecture
  • Previous by thread: Re: Login information for VPN connections
  • Next by thread: kqueue, multithreading and architecture
  • Index(es):
    • Date
    • Thread