{"action":"created","issue":{"url":"https://api.github.com/repos/OAuthSwift/OAuthSwift/issues/167","labels_url":"https://api.github.com/repos/OAuthSwift/OAuthSwift/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/OAuthSwift/OAuthSwift/issues/167/comments","events_url":"https://api.github.com/repos/OAuthSwift/OAuthSwift/issues/167/events","html_url":"https://github.com/OAuthSwift/OAuthSwift/issues/167","id":123984287,"number":167,"title":"Example usage for OAuthWebViewController","user":{"login":"aozbayra","id":9277891,"avatar_url":"https://avatars.githubusercontent.com/u/9277891?v=3","gravatar_id":"","url":"https://api.github.com/users/aozbayra","html_url":"https://github.com/aozbayra","followers_url":"https://api.github.com/users/aozbayra/followers","following_url":"https://api.github.com/users/aozbayra/following{/other_user}","gists_url":"https://api.github.com/users/aozbayra/gists{/gist_id}","starred_url":"https://api.github.com/users/aozbayra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aozbayra/subscriptions","organizations_url":"https://api.github.com/users/aozbayra/orgs","repos_url":"https://api.github.com/users/aozbayra/repos","events_url":"https://api.github.com/users/aozbayra/events{/privacy}","received_events_url":"https://api.github.com/users/aozbayra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OAuthSwift/OAuthSwift/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-27T15:55:43Z","updated_at":"2015-12-28T07:22:45Z","closed_at":null,"body":"Like everyone else I am trying to open the sign in process through a web view instead of Safari. This is the piece of code I have:\r\n\r\n        if #available(iOS 9.0, *) {\r\n            oauthswift.authorize_url_handler = SafariURLHandler(viewController: self)\r\n        }\r\n        else {\r\n            let webView = OAuthWebViewController()\r\n            oauthswift.authorize_url_handler = webView\r\n        }\r\n\r\nSafariURLHandler works fine but the OAuthWebViewController does not work I need to present the webvViewController both from the root view controller and some other view controller. \r\n\r\nWhat is the proper implementation of OAuthWebViewController in my case? Thank you in advance."},"comment":{"url":"https://api.github.com/repos/OAuthSwift/OAuthSwift/issues/comments/167498255","html_url":"https://github.com/OAuthSwift/OAuthSwift/issues/167#issuecomment-167498255","issue_url":"https://api.github.com/repos/OAuthSwift/OAuthSwift/issues/167","id":167498255,"user":{"login":"phimage","id":8875768,"avatar_url":"https://avatars.githubusercontent.com/u/8875768?v=3","gravatar_id":"","url":"https://api.github.com/users/phimage","html_url":"https://github.com/phimage","followers_url":"https://api.github.com/users/phimage/followers","following_url":"https://api.github.com/users/phimage/following{/other_user}","gists_url":"https://api.github.com/users/phimage/gists{/gist_id}","starred_url":"https://api.github.com/users/phimage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phimage/subscriptions","organizations_url":"https://api.github.com/users/phimage/orgs","repos_url":"https://api.github.com/users/phimage/repos","events_url":"https://api.github.com/users/phimage/events{/privacy}","received_events_url":"https://api.github.com/users/phimage/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T07:22:44Z","updated_at":"2015-12-28T07:22:44Z","body":"There is no version 2.0, see https://github.com/OAuthSwift/OAuthSwift/releases\r\nIf you use cocoapod there is a PodFile.lock near PodFile with version used\r\n\r\nPlease update because that following code is old, previous 0.5.0\r\n`UIApplication.sharedApplication().keyWindow?.rootViewController?.presentViewController(`\r\n"}}