A simple OAuth2 helper
CocoaPods is the recommended way to add SimpleOAuth2 to your project.
- Add SimpleOAuth2 to your Podfile
pod 'SimpleOAuth2'
. - Install the pod(s) by running
pod install
. - Add SimpleOAuth2 to your files with
#import <SimpleOAuth2/SimpleOAuth2.h>
.
- Clone repository from github and copy files directly, or add it as a git submodule.
- Add all files from 'Source' directory to your project (As well as the dependencies listed in the Podfile).
- Use SimpleOAuth2AuthenticationManager to authenticate an OAuth2 client.
- The NSURLRequest+SimpleOAuth2 catgeory provides a helper method to obtain a authorization code from an NSURLRequest from an API. It also has a method to build a web login request with an optional permissionScope. If no permission scope is needed, pass in nil.
To use the included Rakefile to run expecta tests, run the setup.sh script to bundle required gems and cocoapods:
$ ./setup.sh
Then run rake to run the tests on the command line:
$ bundle exec rake
Additional rake tasks can be seen using rake -T:
$ rake -T
rake build # Build SimpleOAuth2
rake clean # Clean
rake test # Run Tests
Version history can be found at the SimpleOAuth2 wiki.
Thanks for checking out SimpleOAuth2 for your OAuth2 needs. Any feedback can be can be sent to: rbaumbach.github@gmail.com.