Skip to content
/ OAuth2App Public

Simple Mac app to demonstrate usage of the OAuth2 Swift framework

Notifications You must be signed in to change notification settings

p2/OAuth2App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth 2 App

Terribly simple OS X Swift App to demonstrate use of the Swift OAuth2 Framework against the GitHub API. It lets you login to GitHub and then pulls your user information, displaying your avatar and full name (for some reason the avatar doesn't automatically center; resize the window for that to happen). The OAuth2 library is added as a Swift Package dependency.

Take a look at the GitHubLoader class, which is intended to be used as a singleton and handles the OAuth flow as well as requests to the GitHub API.

There also is a deprecated iOS Sample App which uses Cocoapods to integrate the OAuth2 framework. Cocoapods is no longer supported for OAuth2 since version 5.1.

Installation

Do a checkout, then open the project in Xcode 11 or newer and run it:

$ git clone https://github.com/p2/OAuth2App.git

License

CC0

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

About

Simple Mac app to demonstrate usage of the OAuth2 Swift framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages