BoxSimpleOAuth

MIT License
Objective-C
iOS

2 images

Author

Description

A quick and simple way to authenticate a Box user in your iPhone or iPad app.

Quick How-To:

  • Create an instance of BoxSimpleOAuthViewController and pass in a Box client ID, client secret, client callback URL and completion block to be executed with BoxLoginResponse and NSError arguments.

  • Once the instance of BoxSimpleOAuthViewController is presented (either as a modal or pushed on the navigation stack), it will allow the user to login. After the user logs in, the completion block given in the initialization of the view controller will be executed. The argument in the completion block, BoxLoginResponse, contains an authToken and other login information for the authenticated user provided by Box API Response. If there is an issue attempting to authenticate, an error will be given instead.

Tags