Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 44 lines (28 sloc) 1.405 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
//
// IRWebAPIXOAuthAuthenticator.h
// IRWebAPIKit
//
// Created by Evadne Wu on 11/21/10.
// Copyright 2010 Iridia Productions. All rights reserved.
//

// OAUTH ON DESKTOP / MOBILE APPS IS A JOKE.
// THERE IS NO OAUTH AUTHENTICATOR PROVIDED.

@class IRWebAPIAuthenticator;
@interface IRWebAPIXOAuthAuthenticator : IRWebAPIAuthenticator {

NSString *consumerKey;
NSString *consumerSecret;

NSString *retrievedToken;
NSString *retrievedTokenSecret;

NSURL *xAuthAccessTokenBaseURL;
NSURL *authorizeURL;

}

@property (nonatomic, readwrite, retain) NSString *consumerKey;
@property (nonatomic, readwrite, retain) NSString *consumerSecret;

@property (nonatomic, readwrite, retain) NSString *retrievedToken;
@property (nonatomic, readwrite, retain) NSString *retrievedTokenSecret;


- (NSDictionary *) oAuthHeaderValuesForHTTPMethod:(NSString *)inHTTPMethod baseURL:(NSURL *)inBaseURL arguments:(NSDictionary *)inMethodArguments;
- (NSString *) oAuthHeaderValueForHTTPMethod:(NSString *)inHTTPMethod baseURL:(NSURL *)inBaseURL arguments:(NSDictionary *)inMethodArguments;

// The former returns a dictionary, which is used by the latter, which concatenates everything into a string ready for use in the Authorization header or another header, e.g. X-Verify-Credentials-Authorization


- (NSString *) oAuthHeaderValueForRequestContext:(NSDictionary *)inRequestContext;

// Convenience.


@end
Something went wrong with that request. Please try again.