Using The Framework

Now that you've added the framework to your project, you're ready to use it. Navigate to your AppDelegate and import the AuthenticationManager.h file.

Find your launch method (didFinishLaunchingWithOptions):

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

Instantiate the AuthenticationManager shared client. This will setup the client with your app credentials for all future calls to the AuthenticationManager*. There are different methods for Directory Service and Service implementations.

Service

Parameters

Find this information in the Service Details section within your Dashboard.

appKey:integer 10 digit unique Service Key
secretKey:string Service Secret Key
privateKey:string Private key of your service RSA Public/Private Key Pair

Example

[[AuthenticationManager sharedClient]
init:appKey
withSecretKey:secretKey
withPrivateKey:privateKey];

Directory Service

Parameters

Find this information in the Service Details section within your Dashboard.

appKey:integer 10 digit unique term:Service Key
secretKey:string Service Secret Key
privateKey:string Private key of your service RSA Public/Private Key Pair

Example

[[AuthenticationManager sharedClient]
    initAsWhiteLabel:appKey
    withSecretKey:appSecret
    withPrivateKey:privateKey];

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at https://launchkey.com./support. ×