MicroStrategy ONE

Use the MicroStrategy Identity SSO Library for Authenticating iOS App

  1. Ask MicroStrategy Identity for permissions.

    [[SSOClient sharedInstance] authorize: @[SSOUsherAccountProfilePicture, SSOUsherAccountName, SSOUsherAccountEmail]];

    This example authorizes just three permissions: profile picture, account name, and email. For a full list of permissions, see List of Permissions and Server APIs for iOS.

  2. Handle MicroStrategy Identity's response.

    - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
    {
    		BOOL SSOSuccess = NO;
    	if ([[url absoluteString] hasPrefix:@"hasPrefixValue"]) {
    			SSOSuccess = [[SSOClient sharedInstance] handleOpenURL:url fromApplication:sourceApplication];
    	}
    }

    where:

  3. Make requests for data once you are authenticated.

Now that app configuration is complete, you can customize your app permissions by using the List of Permissions and Server APIs for iOS.