Inherits from UIViewController
Declared in SPTAuthViewController.h

Overview

A authentication view controller

To present the authentication dialog on top of your view controller, do like this:

authvc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
authvc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
self.modalPresentationStyle = UIModalPresentationCurrentContext;
self.definesPresentationContext = YES;
[self presentViewController:authvc animated:NO completion:nil];

Properties

delegate

The delegate which will receive the result of the authentication.

@property (nonatomic, assign) id<SPTAuthViewDelegate> delegate

Declared In

SPTAuthViewController.h

Class Methods

authenticationViewController

Creates an authentication view controller for the default application using the authentication information from SPTAuth.defaultInstance

+ (SPTAuthViewController *)authenticationViewController

Return Value

The authentication view controller.

Declared In

SPTAuthViewController.h

authenticationViewControllerWithAuth:

Creates an authentication view controller for a specific application.

+ (SPTAuthViewController *)authenticationViewControllerWithAuth:(SPTAuth *)auth

Parameters

auth

The authentication object, containing the app configuration, pass nil if you want to use the authentication information from SPTAuth.defaultInstance

Return Value

The authentication view controller.

Declared In

SPTAuthViewController.h

Instance Methods

clearCookies:

Removes all authentication related cookies from the UIWebView.

- (void)clearCookies:(void ( ^ ) ( ))callback

Parameters

callback

Called when cookies are cleared.

Declared In

SPTAuthViewController.h