Inherits from NSObject
Declared in WACloudAccessControlClient.h

Overview

A class that represents a client used to authenticate against the Windows Azure Access Control Service (ACS).

Tasks

Properties

realm

The ACS realm for the client.

@property (readonly) NSString *realm

Declared In

WACloudAccessControlClient.h

serviceNamespace

The service namespace for the client.

@property (readonly) NSString *serviceNamespace

Declared In

WACloudAccessControlClient.h

Class Methods

accessControlClientForNamespace:realm:

Create an access control client initialized with the given service namespace and realm.

+ (WACloudAccessControlClient *)accessControlClientForNamespace:(NSString *)serviceNamespace realm:(NSString *)realm

Parameters

serviceNamespace

The ACS service namespace.

realm

The ACS realm.

Return Value

The newly initialized WACloudAccessControlClient object.

Declared In

WACloudAccessControlClient.h

logOut

Instructs the client to release the shared token.

+ (void)logOut

Declared In

WACloudAccessControlClient.h

sharedToken

The security token that was set when the user authenticated through a call to requestAccessInViewController:withCompletionHandler:.

+ (WACloudAccessToken *)sharedToken

Declared In

WACloudAccessControlClient.h

Instance Methods

createViewControllerAllowsClose:withCompletionHandler:

Creates a new view controller that contains the authentication user interface.

- (UIViewController *)createViewControllerAllowsClose:(BOOL)allowsClose withCompletionHandler:(void ( ^ ) ( BOOL authenticated ))block

Parameters

allowsClose

Determines if the user interface can be closed.

block

The completion handler is called when the process is completed and contains if the user is authenticated or not.

Return Value

A UIViewController to display the authentication view.

Declared In

WACloudAccessControlClient.h

showInViewController:allowsClose:withCompletionHandler:

Present the authentication user interface in a given controler.

- (void)showInViewController:(UIViewController *)controller allowsClose:(BOOL)allowsClose withCompletionHandler:(void ( ^ ) ( BOOL authenticated ))block

Parameters

controller

The controller to display the view.

allowsClose

Determines if the user interface can be closed.

block

The completion handler is called when the process is completed and contains if the user is authenticated or not.

Declared In

WACloudAccessControlClient.h