Skip to content

p2/MCOAuth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MCOAuth2

OAuth2 classes for a modern Objective-C environment. This is more of an academic exercise and served as precursor for the Swift OAuth2 framework, you should not be using this one. Here is a very nice explanation of OAuth's basics: The OAuth Bible.

The code in this repo requires OS X 10.9+ or iOS 7+, with ARC enabled.

Flows

Code Grant

For a full OAuth 2 code grant flow you want to use the MCOAuth2CodeGrant class. This flow is typically used by applications that can guard their secrets, like server-side apps, and not in distributed binaries.

Implicit Grant

An implicit grant is suitable for apps that are not capable of guarding their secret, such as distributed binaries or client-side web apps. Use the MCOAuth2ImplicitGrant class to receive a token and perform requests.

Test App

There is a simple Mac App that uses this repo, you can use it as an example implementation.

About

OAuth2 client for a modern Objective-C environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages