This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { | |
return [[LKAuthenticationManager sharedClient] handleOpenUrl:url]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return [[LKAuthenticationManager sharedClient] handleOpenUrl:url]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <LaunchKeyManager/LKAuthenticationManager.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[LKAuthenticationManager sharedClient] | |
init:appKey | |
withSecretKey:appSecret | |
withPrivateKey:privateKey]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[LKAuthenticationManager sharedClient] authorize:@"username" withSuccess:^(NSString *userHash, NSString *authRequest, NSString *pins, NSString *deviceId | |
{ | |
NSLog(@"success"); | |
} withFailure:^(NSString *errorMessage, NSString *errorCode) { | |
NSLog(@"failure"); | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[LKAuthenticationManager sharedClient] authorize:@"username" isTransactional:TRUE withSuccess:^(NSString *userHash, NSString *authRequest, NSString *pins, NSString *deviceId | |
{ | |
NSLog(@"success"); | |
} withFailure:^(NSString *errorMessage, NSString *errorCode) { | |
NSLog(@"failure"); | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[LKAuthenticationManager sharedClient] isAuthorized:authRequest withSuccess:^(BOOL authorized) { | |
} withFailure:^(NSString *errorMessage, NSString *errorCode) { | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[LKAuthenticationManager sharedClient] logout:authRequest withSuccess:^{ | |
} withFailure:^(NSString *errorMessage, NSString *errorCode) { | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.LaunchKeyManager.LKAuthenticationManager; | |
LKAuthenticationManager.getInstance().init(appKey, appSecret, privateKey); |