GitXplorerGitXplorer
p

OAuth2PodApp

public
21 stars
9 forks
5 issues

Commits

List of commits on branch master.
Unverified
7a2fb5af42f2bbb9f28eab76c8e59a595d96650d

Update Podfile

pp2 committed 8 years ago
Unverified
e5549c54c7890b5375c5159798f9ba09bbdd5e84

Remove unit tests. Add missing property.

pp2 committed 8 years ago
Unverified
15f3524e71ec553297e795015c926eda87cd8822

Update to Swift 3. Demo usage with Alamofire.

pp2 committed 8 years ago
Unverified
c7c2ef2c416123646985ed0041ff16fd09e4947b

Remove Pod tests

pp2 committed 8 years ago
Unverified
fb683206977d3b5d5473f062e1ab573253b910ee

Some changes for OAuth2 v2.2.3

pp2 committed 9 years ago
Unverified
cde583089165d9225f4f023056e8a338d2427ae8

Update to use version 2.1 of OAuth2

pp2 committed 9 years ago

README

The README file for this repository.

OAuth2 iOS Test App

This is an OAuth2 framework sample app running on iPhone. It uses Cocoapods to install the framework, currently version 2.1. There also is an OS X Test App that does not use CocoaPods.

This example app has you log in to GitHub and then fetches your username and avatar.

Note that there is a "forget tokens" button, which will throw away your current access token, but it will NOT destroy your session with GitHub, so subsequent taps on "Sign In" will briefly show GitHub's login screen which will log you in automatically and disappear immediately. If you use native login (i.e. Safari), you can visit GitHub in Safari and log out there.

Embedded vs. Native

There are two buttons, one to login using a built-in web view controller and one to open Safari for login. This is achieved by setting oauth2.authConfig.authorizeEmbedded to either true or false.

Installation

Refer to the Cocoapods installation guide if you don't yet have it. Then:

git clone https://github.com/p2/OAuth2PodApp.git
cd OAuth2PodApp
pod install

Now you can open OAuth2PodApp.xcworkspace (not the xcodeproj file) and hit Run.

License

CC0

I have waived all copyright and related or neighboring rights to OAuth2PodApp.