Skip to content

Instantly share code, notes, and snippets.

@Protome
Protome / OAuthiOSSample.swift
Last active August 21, 2018 20:37
oAuth iOS Login
func loginToGoodreadsAccount(sender: UIViewController) {
let oauthswift = OAuth1Swift(
consumerKey: [Replace with your Key],
consumerSecret: [Replace with your Secret],
requestTokenUrl: "https://www.goodreads.com/oauth/request_token",
authorizeUrl: "https://www.goodreads.com/oauth/authorize?mobile=1",
accessTokenUrl: "https://www.goodreads.com/oauth/access_token"
)
oauthswift.allowMissingOAuthVerifier = true