Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

WindowsCredential cached #12

Open
javiazo opened this issue Jul 4, 2012 · 3 comments
Open

WindowsCredential cached #12

javiazo opened this issue Jul 4, 2012 · 3 comments

Comments

@javiazo
Copy link

javiazo commented Jul 4, 2012

I´m having a problem with the windows credentials. I´m trying to connect to two differnet services, both trought OData. But my problem is when I´ve been loged correctly once, it´s makes imposible to me to change that credential.

Please, anyone has any idea what I´m doing wrong.

Thanks.

@erikkerber
Copy link

I'm experiencing the same issue.

@javiazo , did you ever find a workaround?

@erikkerber
Copy link

A workaround is changing the credential cache flag to NSURLCredentialPersistenceNone in didReceiveAuthenticationChallenge.

The flag they have in there is "CachePerSession", but I'm not sure how to clear that "session" once new credentials are entered.

@erikkerber
Copy link

Alternatively, this code may be called to clear the caches relative to the url you are accessing.

https://gist.github.com/veader/559071

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants