Swiftpack.co - jellybeansoup/ios-dropbox-auth as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jellybeansoup.
jellybeansoup/ios-dropbox-auth v0.1.0
A simple library for authorising Dropbox API requests on iOS.
⭐️ 3
🕓 2 weeks ago
iOS
.package(url: "https://github.com/jellybeansoup/ios-dropbox-auth.git", from: "v0.1.0")

#Dropbox Auth

In occasions when the official SDK for Dropbox is too heavy or too restricting, it's usually preferable to access the HTTP API directly. The problem is, you then have to deal with the OAuth flow and storage of the credentials by hand, or worse, utilise the Dropbox SDK for just that part of the process (and given that the new one relies on Alamofire, you're having to embed a framework you never actually use). This library is designed to just handle that aspect, and allows you to sign your own NSURLRequest objects for the API calls, allowing you to handle them any way you want.

##Released under the BSD License

Copyright © 2019 Daniel Farrelly

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

GitHub

link
Stars: 3
Last commit: 2 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.1.0 Initial Release
7 years ago

Initial release.

  • Mechanism for authorising Dropbox access via OAuth v2 protocol.
  • Automatic migration of OAuth v1 tokens to OAuth v2.
  • Keychain storage for auth tokens.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics