Inherits from NSObject
Declared in LUAuthenticationRequestFactory.h
LUAuthenticationRequestFactory.m

Overview

LUAuthenticationRequestFactory is used to build requests to authenticate with the API.

Class Methods

requestToCreateDowngradedAccessTokenWithPermissions:

Builds a request to create a new access token with a limited set of permissions.

+ (LUAPIRequest *)requestToCreateDowngradedAccessTokenWithPermissions:(NSArray *)permissions

Parameters

permissions

An array of permission names. For a full list of possible permissions, see http://developer.thelevelup.com/getting-started/permissions-list/

Discussion

Builds a request to create a new access token with a limited set of permissions.

On success, a new LUAccessToken instance will be returned.

If the access token used for the request doesn’t have access to any of the permissions, the request will fail with an LUAPIErrorLoginRequired error.

Warning: This request requires an access token with all the downgraded permissions.

Declared In

LUAuthenticationRequestFactory.h

requestToLoginWithEmail:password:

Builds a request to login via an email and password.

+ (LUAPIRequest *)requestToLoginWithEmail:(NSString *)email password:(NSString *)password

Parameters

email

The email address to use for the login.

password

The password to use for the login.

Discussion

Builds a request to login via an email and password.

On success, this request will return an LUAccessToken instance.

Warning: Use of this request requires an Enterprise SDK license.

Declared In

LUAuthenticationRequestFactory.h