HTTPURLSession digest authentication with HA1 (not password)
Asked Answered
P

0

6

Simply I have scenario where digest authentication is performed using user name and HA1 value (which was calculated somewhere in the past or it was provider by authentication to other server). Password is not available.

Now how do I handle this scenario using NSURLSession?

Do I have to do it manually (calculate HA2 and response my self) or is there some solution for that? (it should be there since keeping password as plain text is a security issue).

Please note the I have scenario where HA1 comes from authentication to other server so NSURLCredential persistence with value NSURLCredentialPersistencePermanent doesn't resolve my problem.

Poppied answered 27/3, 2015 at 9:49 Comment(1)
looks like I have to do own implementation of digest authentication.Poppied

© 2022 - 2024 — McMap. All rights reserved.