Latest 0.1.4
Homepage https://github.com/rbaumbach/SimpleOAuth2
License MIT
Platforms ios 8.0, requires ARC
Dependencies AFNetworking
Authors

SimpleOAuth2 CircleCI codecov Cocoapod Version Cocoapod Platform Carthage Compatible License

A simple OAuth2 helper

Adding SimpleOAuth2 to your project

Cocoapods

CocoaPods is the recommended way to add SimpleOAuth2 to your project.

  1. Add SimpleOAuth2 to your Podfile pod 'SimpleOAuth2'.
  2. Install the pod(s) by running pod install.
  3. Add SimpleOAuth2 to your files with #import <SimpleOAuth2/SimpleOAuth2.h>.

Carthage

  1. Add github "rbaumbach/SimpleOAuth2" to your Cartfile.
  2. Follow the directions to add the dynamic framework to your target.

Clone from Github

  1. Clone repository from github and copy files directly, or add it as a git submodule.
  2. Add all files from ‘Source’ directory to your project (As well as the dependencies listed in the Podfile).

Tools

  • 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.

Testing

This project has been setup to use fastlane to run the specs.

First, run the setup.sh script to bundle required gems and Cocoapods when in the project directory:

$ ./setup.sh

And then use fastlane to run all the specs on the command line:

$ bundle exec fastlane specs

Version History

Version history can be found on releases page.

Suggestions, requests, and feedback

Thanks for checking out SimpleOAuth2 for your OAuth2 needs. Any feedback can be can be sent to: [email protected].

Latest podspec

{
    "name": "SimpleOAuth2",
    "version": "0.1.4",
    "summary": "A Simple OAuth2 Helper.",
    "homepage": "https://github.com/rbaumbach/SimpleOAuth2",
    "license": {
        "type": "MIT",
        "file": "MIT-LICENSE.txt"
    },
    "authors": {
        "Ryan Baumbach": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rbaumbach/SimpleOAuth2.git",
        "tag": "0.1.4"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "public_header_files": [
        "SimpleOAuth2/Source/SimpleOAuth2.h",
        "SimpleOAuth2/Source/SimpleOAuth2AuthenticationManager.h",
        "SimpleOAuth2/Source/NSURLRequest+SimpleOAuth2.h",
        "SimpleOAuth2/Source/TokenParameters.h"
    ],
    "source_files": "SimpleOAuth2/Source/*.{h,m}",
    "dependencies": {
        "AFNetworking": [
            ">= 3.0.0"
        ]
    }
}

Pin It on Pinterest

Share This