dodikk / JiveAuthenticatingHTTPProtocol

JiveAuthenticatingHTTPProtocol provides authentication callbacks for a UIWebView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JiveAuthenticatingHTTPProtocol

Based on Apple's CustomHTTPProtocol, JiveAuthenticatingHTTPProtocol provides authentication callbacks for a UIWebView.

Usage

JiveAuthenticatingHTTPProtocol captures all NSURLConnection traffic. Ensure that no other NSURLConnections can start after you call +[JAHPAuthenticatingHTTPProtocol start]. Before loading an NSURLRequest that may require handling an authentication callback, call +[JAHPAuthenticatingHTTPProtocol setDelegate:], then +[JAHPAuthenticatingHTTPProtocol start]. Finally, load your NSURLRequest, and handle the callbacks from JAHPAuthenticatingHTTPProtocolDelegate.

See JiveAuthenticatingHTTPProtocolDemo/ViewController.m for an example.

License

BSD per the LICENSE file.

About

JiveAuthenticatingHTTPProtocol provides authentication callbacks for a UIWebView

License:Other


Languages

Language:Objective-C 99.0%Language:Ruby 1.0%