add some code to BITAuthenticatorViewController

and let it perform authentication. Still some TODOs to do.
This commit is contained in:
Stephan Diederich
2013-08-11 22:41:49 +02:00
parent 2a3a8d62cb
commit d7f45267dd
3 changed files with 292 additions and 21 deletions

View File

@@ -8,8 +8,24 @@
#import <UIKit/UIKit.h>
@protocol BITAuthenticationViewControllerDelegate;
@class BITAuthenticator;
@interface BITAuthenticationViewController : UIViewController
@interface BITAuthenticationViewController : UITableViewController
/**
* can be set to YES to also require the users password
*
* defaults to NO
*/
@property (nonatomic, assign) BOOL requirePassword;
/**
* TODO: instead of passing the whole authenticator, we actually only need
* something to create and enqueue BITHTTPOperations
*/
@property (nonatomic, weak) BITAuthenticator *authenticator;
@property (nonatomic, weak) id<BITAuthenticationViewControllerDelegate> delegate;
@end