p2 / OAuth2App

Simple Mac app to demonstrate usage of the OAuth2 Swift framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Swift 100.0%