{"action":"created","issue":{"url":"https://api.github.com/repos/p2/OAuth2/issues/11","labels_url":"https://api.github.com/repos/p2/OAuth2/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/p2/OAuth2/issues/11/comments","events_url":"https://api.github.com/repos/p2/OAuth2/issues/11/events","html_url":"https://github.com/p2/OAuth2/issues/11","id":57734426,"number":11,"title":"No redirection after Google+ authentication","user":{"login":"rjourde","id":1008617,"avatar_url":"https://avatars.githubusercontent.com/u/1008617?v=3","gravatar_id":"","url":"https://api.github.com/users/rjourde","html_url":"https://github.com/rjourde","followers_url":"https://api.github.com/users/rjourde/followers","following_url":"https://api.github.com/users/rjourde/following{/other_user}","gists_url":"https://api.github.com/users/rjourde/gists{/gist_id}","starred_url":"https://api.github.com/users/rjourde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjourde/subscriptions","organizations_url":"https://api.github.com/users/rjourde/orgs","repos_url":"https://api.github.com/users/rjourde/repos","events_url":"https://api.github.com/users/rjourde/events{/privacy}","received_events_url":"https://api.github.com/users/rjourde/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/p2/OAuth2/labels/site-specifics","name":"site-specifics","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-02-15T15:47:08Z","updated_at":"2015-05-08T14:25:33Z","closed_at":null,"body":"Performed a OAuth2CodeGrant operation with Google+ settings:\r\n~~~ swift\r\nlet settings = [\r\n    \"client_id\": xxxx,\r\n    \"authorize_uri\": \"https://accounts.google.com/o/oauth2/auth\",\r\n    \"token_uri\": \"https://accounts.google.com/o/oauth2/token\",\r\n    \"scope\": \"https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email\",\r\n    \"redirect_uris\": [\"urn:ietf:wg:oauth:2.0:oob:auto\"],\r\n]\r\n~~~\r\nThe authentication succeeded by the OAuth2WebView was not dismissed automatically.\r\n\r\nI put a breakpoint in `shouldStartLoadWithRequest` method of the `OAuth2WebViewController` and noticed that `request.URL.scheme` does not equal to `interceptComponents?.scheme` and the same for `request.URL.host` and `interceptComponents?.host`. So `onIntercept`callback is never called."},"comment":{"url":"https://api.github.com/repos/p2/OAuth2/issues/comments/100246558","html_url":"https://github.com/p2/OAuth2/issues/11#issuecomment-100246558","issue_url":"https://api.github.com/repos/p2/OAuth2/issues/11","id":100246558,"user":{"login":"p2","id":358485,"avatar_url":"https://avatars.githubusercontent.com/u/358485?v=3","gravatar_id":"","url":"https://api.github.com/users/p2","html_url":"https://github.com/p2","followers_url":"https://api.github.com/users/p2/followers","following_url":"https://api.github.com/users/p2/following{/other_user}","gists_url":"https://api.github.com/users/p2/gists{/gist_id}","starred_url":"https://api.github.com/users/p2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p2/subscriptions","organizations_url":"https://api.github.com/users/p2/orgs","repos_url":"https://api.github.com/users/p2/repos","events_url":"https://api.github.com/users/p2/events{/privacy}","received_events_url":"https://api.github.com/users/p2/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T14:25:33Z","updated_at":"2015-05-08T14:25:33Z","body":"@rjourde @tzusman @jnovkovic The following settings work for me, can you confirm? I'll make a change to not require the trailing localhost slash and am looking at supporting the `oob` callback.\r\n\r\n```swift\r\nlet settings = [\r\n\t\"client_id\": \"xxxx.apps.googleusercontent.com\",\r\n\t\"client_secret\": \"yyyy\",\r\n\t\"authorize_uri\": \"https://accounts.google.com/o/oauth2/auth\",\r\n\t\"token_uri\": \"https://www.googleapis.com/oauth2/v3/token\",\r\n\t\"scope\": \"https://www.googleapis.com/auth/plus.login\",\r\n\t\"redirect_uris\": [\"http://localhost/\"],\r\n]\r\n```"}}