1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #import <Foundation/Foundation.h>
- #import "MPOAuthAuthenticationMethod.h"
- #import "MPOAuthAPI.h"
- #import "MPOAuthAPIRequestLoader.h"
- extern NSString * const MPOAuthNotificationRequestTokenReceived;
- extern NSString * const MPOAuthNotificationRequestTokenRejected;
- @protocol MPOAuthAuthenticationMethodOAuthDelegate;
- @interface MPOAuthAuthenticationMethodOAuth : MPOAuthAuthenticationMethod <MPOAuthAPIInternalClient> {
- NSURL *oauthRequestTokenURL_;
- NSURL *oauthAuthorizeTokenURL_;
- BOOL oauth10aModeActive_;
-
- id <MPOAuthAuthenticationMethodOAuthDelegate> delegate_;
- }
- @property (nonatomic, readwrite, assign) id <MPOAuthAuthenticationMethodOAuthDelegate> delegate;
- @property (nonatomic, readwrite, retain) NSURL *oauthRequestTokenURL;
- @property (nonatomic, readwrite, retain) NSURL *oauthAuthorizeTokenURL;
- - (void)authenticate;
- @end
- @protocol MPOAuthAuthenticationMethodOAuthDelegate <NSObject>
- - (NSURL *)callbackURLForCompletedUserAuthorization;
- - (BOOL)automaticallyRequestAuthenticationFromURL:(NSURL *)inAuthURL withCallbackURL:(NSURL *)inCallbackURL;
- @optional
- - (NSString *)oauthVerifierForCompletedUserAuthorization;
- - (void)authenticationDidFailWithError:(NSError *)error;
- @end
|