{"action":"created","issue":{"url":"https://api.github.com/repos/dongri/OAuthSwift/issues/87","labels_url":"https://api.github.com/repos/dongri/OAuthSwift/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/dongri/OAuthSwift/issues/87/comments","events_url":"https://api.github.com/repos/dongri/OAuthSwift/issues/87/events","html_url":"https://github.com/dongri/OAuthSwift/issues/87","id":98621112,"number":87,"title":"authorizeWithCallbackURL does nothing with Uber","user":{"login":"sephethus","id":545878,"avatar_url":"https://avatars.githubusercontent.com/u/545878?v=3","gravatar_id":"","url":"https://api.github.com/users/sephethus","html_url":"https://github.com/sephethus","followers_url":"https://api.github.com/users/sephethus/followers","following_url":"https://api.github.com/users/sephethus/following{/other_user}","gists_url":"https://api.github.com/users/sephethus/gists{/gist_id}","starred_url":"https://api.github.com/users/sephethus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sephethus/subscriptions","organizations_url":"https://api.github.com/users/sephethus/orgs","repos_url":"https://api.github.com/users/sephethus/repos","events_url":"https://api.github.com/users/sephethus/events{/privacy}","received_events_url":"https://api.github.com/users/sephethus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-02T16:47:19Z","updated_at":"2015-08-02T19:58:51Z","closed_at":null,"body":"I execute the following but nothing happens:\r\n\r\n```\r\n    //UBER\r\n    let REGISTER_URL = \"https://login.uber.com/oauth/authorize\"\r\n    let CLIENT_KEY = \"********************\"\r\n    let SERVER_TOKEN = \"*********************\"\r\n    let CLIENT_SECRET = \"**************************\"\r\n    let ACCESS_TOKEN_URL = \"https://login.uber.com/oauth/token\"\r\n    let REDIRECT_URI = \"myappname://callback/url\"\r\n\r\n    func registerWithUber() {\r\n        let params = [String: String]()\r\n        let url = NSURL(string: REDIRECT_URI)\r\n        let oauthUber = OAuth2Swift(consumerKey: CLIENT_KEY, consumerSecret: CLIENT_SECRET, authorizeUrl: REGISTER_URL, responseType: \"code\")\r\n        \r\n        oauthUber.authorizeWithCallbackURL(url!, scope: \"profile history\", state: \"\", params: params, success: {\r\n            credentials, parameters, response in\r\n                println(\"Success\")\r\n                println(credentials.oauth_token) },\r\n        \r\n            failure: { (error: NSError) -> Void in\r\n                println(\"Fail\")\r\n        })\r\n   \r\n    }\r\n```\r\n\r\nShouldn't it launch the Safari browser to authenticate with Uber?"},"comment":{"url":"https://api.github.com/repos/dongri/OAuthSwift/issues/comments/127062178","html_url":"https://github.com/dongri/OAuthSwift/issues/87#issuecomment-127062178","issue_url":"https://api.github.com/repos/dongri/OAuthSwift/issues/87","id":127062178,"user":{"login":"sephethus","id":545878,"avatar_url":"https://avatars.githubusercontent.com/u/545878?v=3","gravatar_id":"","url":"https://api.github.com/users/sephethus","html_url":"https://github.com/sephethus","followers_url":"https://api.github.com/users/sephethus/followers","following_url":"https://api.github.com/users/sephethus/following{/other_user}","gists_url":"https://api.github.com/users/sephethus/gists{/gist_id}","starred_url":"https://api.github.com/users/sephethus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sephethus/subscriptions","organizations_url":"https://api.github.com/users/sephethus/orgs","repos_url":"https://api.github.com/users/sephethus/repos","events_url":"https://api.github.com/users/sephethus/events{/privacy}","received_events_url":"https://api.github.com/users/sephethus/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T19:58:51Z","updated_at":"2015-08-02T19:58:51Z","body":"Further examination through the OAuthSwift method authorizeWithCallbackURL I found this does not happen here:\r\n```\r\n        if let queryURL = NSURL(string: urlString) {\r\n            println(\"This happens\")\r\n           self.authorize_url_handler.handle(queryURL)\r\n        }\r\n```\r\n\r\nI tried println(urlString) and it looks fine as a URL. I'm not sure why it's not getting converted to NSURL here."}}