Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Allow the secret to be safely specified externally #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions Accounts/ViewControllers/Modal/OAuthViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,19 @@
#import "OAuthLoginHostPicker.h"
#import "OAuthCustomHostCreator.h"

// keys for login
#define OAuthClientID @"Your OAuth Key"
#define OAuthConsumerSecret @"Your OAuth secret"
/*
* Keys for login
*
* You can either define them as parameters to the compiler (with the -D option)
* or you can define them in a separate file. Do not check this file into Git, though.
* The file would look like this:
*
* #define OAuthClientID @"Your OAuth Key"
* #define OAuthConsumerSecret @"Your OAuth secret"
*/
#if !defined(OAuthClientID) /*Your OAuth key*/ || !defined(OAuthConsumerSecret) /*Your OAuth secret*/
#import "OAuthKeys.h"
#endif

@interface OAuthViewController : UIViewController <UIWebViewDelegate, UIPopoverControllerDelegate,
OAuthLoginHostPickerDelegate, UINavigationControllerDelegate, OAuthCustomHostCreatorDelegate> {
Expand Down