hank
2017-06-14 a0a84333e64f1e94ae9d0f69545037c60e781842
commit | author | age
a0a843 1 //
H 2 //  TWTRAuthenticationConstants.h
3 //  TWTRAuthentication
4 //
5 //  Created by Mustafa Furniturewala on 2/5/14.
6 //  Copyright (c) 2014 Mustafa Furniturewala. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 #pragma mark Twitter API
12 FOUNDATION_EXPORT NSString *const TWTRTwitterDomain;
13
14 #pragma mark - Authentication
15 FOUNDATION_EXPORT NSString *const TWTRAuthDirectoryLegacyName;
16 FOUNDATION_EXPORT NSString *const TWTRAuthDirectoryName;
17 FOUNDATION_EXPORT NSString *const TWTRSDKScheme;
18 FOUNDATION_EXPORT NSString *const TWTRSDKRedirectHost;
19
20 #pragma mark - Paths
21 FOUNDATION_EXPORT NSString *const TWTRTwitterRequestTokenPath;
22 FOUNDATION_EXPORT NSString *const TWTRTwitterAuthenticatePath;
23 FOUNDATION_EXPORT NSString *const TWTRTwitterAccessTokenPath;
24 FOUNDATION_EXPORT NSString *const TWTRAppAuthTokenPath;
25 FOUNDATION_EXPORT NSString *const TWTRGuestAuthTokenPath;
26
27 #pragma mark - OAuth strings
28 FOUNDATION_EXPORT NSString *const TWTRAuthOAuthTokenKey;
29 FOUNDATION_EXPORT NSString *const TWTRAuthOAuthSecretKey;
30 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthTokenKey;
31 FOUNDATION_EXPORT NSString *const TWTRGuestAuthOAuthTokenKey;
32 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthUserIDKey;
33 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthScreenNameKey;
34 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthVerifierKey;
35 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthDeniedKey;
36 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthAppKey;
37 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthCallbackConfirmKey;
38 FOUNDATION_EXPORT NSString *const TWTRAuthAppOAuthCallbackKey;
39 FOUNDATION_EXPORT NSString *const TWTRAuthTokenTypeKey;
40 FOUNDATION_EXPORT NSString *const TWTRAuthTokenKey;
41 FOUNDATION_EXPORT NSString *const TWTRAuthSecretKey;
42 FOUNDATION_EXPORT NSString *const TWTRAuthUsernameKey;
43 FOUNDATION_EXPORT NSString *const TWTRAuthTokenSeparator;
44
45 #pragma mark - HTTP Headers
46 FOUNDATION_EXPORT NSString *const TWTRAuthorizationHeaderField;
47 FOUNDATION_EXPORT NSString *const TWTRGuestTokenHeaderField;
48
49 #pragma mark - Resources
50 FOUNDATION_EXPORT NSString *const TWTRLoginButtonImageLocation;
51
52 #pragma mark - Errors
53 FOUNDATION_EXPORT NSString *const TWTRMissingAccessTokenMsg;
54
55 typedef NS_ENUM(NSInteger, TWTRAuthType) {
56     TWTRAuthTypeApp = 1,
57
58     TWTRAuthTypeGuest = 2,
59
60     TWTRAuthTypeUser = 3
61 };