-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[README] the list of supported authentication schemes is missing #4
Comments
This library supports all of the authentication schemes |
This has been tested with NTLM and ADFS authentication, (which |
Thanks for the reply. I was asking since I tried to connect via ADFS but failed. My mistake was incorrect stubbing of the Incorrect code:- (BOOL)authenticatingHTTPProtocol:(JAHPAuthenticatingHTTPProtocol *)authenticatingHTTPProtocol
canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace
{
// that's not correct
return true;
} As the result, I saw some Fixed code :- (BOOL)authenticatingHTTPProtocol:(JAHPAuthenticatingHTTPProtocol *)authenticatingHTTPProtocol
canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace
{
NSArray* interceptedAuthMethods =
@[
NSURLAuthenticationMethodHTTPBasic
, NSURLAuthenticationMethodNTLM
];
NSSet* interceptedAuthMethodsSet = [NSSet setWithArray: interceptedAuthMethods];
BOOL canAuthenticate =
[interceptedAuthMethodsSet containsObject: protectionSpace.authenticationMethod];
return canAuthenticate;
} P.S. I hope that helps if someone runs into similar problems. |
@hborders , thank you for fast replies and for sharing this library. |
…iption to the readme. Added some pitfalls I’ve faced to the readme too.
Added some info from this discussion to the readme via #7 |
…iption to the readme. Added some pitfalls I’ve faced to the readme too.
According to the demo app, the library supports
BASIC
authentication scheme.The "readme" page neither mentions that, nor tells about other schemes support.
What is the state of the listed ones ?
The text was updated successfully, but these errors were encountered: