InstagramAuthViewController alternatives and similar libraries
Based on the "Authentication" category.
Alternatively, view InstagramAuthViewController alternatives based on common mentions on social networks and blogs.
-
OAuth2
OAuth2 framework for macOS and iOS, written in Swift. -
SimpleAuth
Simple social authentication for iOS. -
Heimdallr.swift
Easy to use OAuth 2 library for iOS, written in Swift. -
Simplicity
A simple way to implement Facebook and Google login in your iOS apps. -
SwiftyOAuth
A simple OAuth library for iOS with a built-in set of providers -
AuthenticationViewController
A simple to use, standard interface for authenticating to oauth 2.0 protected endpoints via SFSafariViewController. -
Swift Starter Kit ๐๐๐ฅ๐ฅ
Swift Starter Kit with Firebase & Facebook Login Onboarding -
InstagramSimpleOAuth
A quick and simple way to authenticate an Instagram user in your iPhone or iPad app. -
AlamofireOauth2
A swift implementation of OAuth2 -
OhMyAuth
:closed_lock_with_key: Simple OAuth2 library with a support of multiple services. -
InstagramLogin
A simple way to authenticate Instagram accounts on iOS. -
LinkedInSignIn
Simple view controller to log in and retrieve an access token from LinkedIn. -
DropboxSimpleOAuth
A quick and simple way to authenticate a Dropbox user in your iPhone or iPad app. -
IGAuth
A simple way to authenticate Instagram accounts on iOS. -
SwiftUserManager
A usermanager written in swift saves you from hassle of saving your active user session. -
BoxSimpleOAuth
A quick and simple way to authenticate a Box user in your iPhone or iPad app.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of InstagramAuthViewController or a related project?
README
InstagramAuthViewController
A ViewController for Instagram authentication.
A UIViewController
subclass that handles showing the Instagram login page, the authentication dance and finally returning the access token that can be used to communicate with the Instagram API afterwards.
Inspired by Instagram-Auth-iOS. Used PhotoBrowser as a stepping stone. I rewrote the login part in Swift, replced third-party library code with built-in Cocoa Touch frameworks and made it reusable.
Requirements
- iOS 8.0+
- Xcode 7.3<
Installation
Manually
- Download or clone the repo.
- Open the source folder.
- Add
InstagramAuthViewController.swift
to your project. - Profit(?)!
Usage example
- Go to Instagram's developer portal and register your application.
- Take note of the client ID, client secret and redirect URI values.
let clientId = "<YOUR CLIENT ID>"
let clientSecret = "<YOUR CLIENT SECRET>"
let redirectUri = "<YOUR REDIRECT URI>"
Storyboards
- Simply add the
InstagramAuthViewController
as theUIViewController
's class in the Identity inspector.
let instagramAuthViewController = segue.destinationViewController as! InstagramAuthViewController
instagramAuthViewController.delegate = self
instagramAuthViewController.clientId = clientId
instagramAuthViewController.clientSecret = clientSecret
instagramAuthViewController.redirectUri = redirectUri
Programmatically
- Initialize an instance of
InstagramAuthViewController
and present it like a normal ViewController.
let instagramAuthViewController = InstagramAuthViewController(clientId: clientId, clientSecret: clientSecret, redirectUri: redirectUri)
instagramAuthViewController.delegate = self
presentViewController(instagramAuthViewController, animated: true, completion: nil)
- Either way, don't forget to implement the
InstagramAuthDelegate
.
func instagramAuthControllerDidFinish(accessToken: String?, error: NSError?) {
if let error = error {
print("Error logging in to Instagram: \(error.localizedDescription)")
} else {
print("Access token: \(accessToken!)")
}
}
Contribute & Bug Fixes
I would love for you to contribute to InstagramAuthViewController, check the LICENSE
file for more info. Pull requests, bug fixes, improvements welcome.
Meta
Isuru Nanayakkara โ @IJNanayakkara โ [email protected]
Distributed under the MIT license. See LICENSE
for more information.
*Note that all licence references and agreements mentioned in the InstagramAuthViewController README section above
are relevant to that project's source code only.