{"action":"closed","issue":{"url":"https://api.github.com/repos/box/box-ios-content-sdk/issues/13","labels_url":"https://api.github.com/repos/box/box-ios-content-sdk/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/box/box-ios-content-sdk/issues/13/comments","events_url":"https://api.github.com/repos/box/box-ios-content-sdk/issues/13/events","html_url":"https://github.com/box/box-ios-content-sdk/issues/13","id":69744521,"number":13,"title":"Redirect URI mismatch when running sample app","user":{"login":"gcurtis","id":230338,"avatar_url":"https://avatars.githubusercontent.com/u/230338?v=3","gravatar_id":"","url":"https://api.github.com/users/gcurtis","html_url":"https://github.com/gcurtis","followers_url":"https://api.github.com/users/gcurtis/followers","following_url":"https://api.github.com/users/gcurtis/following{/other_user}","gists_url":"https://api.github.com/users/gcurtis/gists{/gist_id}","starred_url":"https://api.github.com/users/gcurtis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcurtis/subscriptions","organizations_url":"https://api.github.com/users/gcurtis/orgs","repos_url":"https://api.github.com/users/gcurtis/repos","events_url":"https://api.github.com/users/gcurtis/events{/privacy}","received_events_url":"https://api.github.com/users/gcurtis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"boxtcarpel","id":1891864,"avatar_url":"https://avatars.githubusercontent.com/u/1891864?v=3","gravatar_id":"","url":"https://api.github.com/users/boxtcarpel","html_url":"https://github.com/boxtcarpel","followers_url":"https://api.github.com/users/boxtcarpel/followers","following_url":"https://api.github.com/users/boxtcarpel/following{/other_user}","gists_url":"https://api.github.com/users/boxtcarpel/gists{/gist_id}","starred_url":"https://api.github.com/users/boxtcarpel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boxtcarpel/subscriptions","organizations_url":"https://api.github.com/users/boxtcarpel/orgs","repos_url":"https://api.github.com/users/boxtcarpel/repos","events_url":"https://api.github.com/users/boxtcarpel/events{/privacy}","received_events_url":"https://api.github.com/users/boxtcarpel/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-04-21T04:57:48Z","updated_at":"2015-04-24T17:59:44Z","closed_at":"2015-04-24T17:59:44Z","body":"When running the sample app, I get a redirect_uri mismatch after attempting to login:\r\n\r\n![Screenshot of redirect_uri error](http://i.imgur.com/N2dqbm3.png)\r\n\r\nI found [some documentation](https://github.com/box/box-ios-content-sdk/blob/060d10abb52d8e7a7c9512f3a36bb9bf861dbd4f/BoxContentSDK/BoxContentSDK/OAuth2/BOXOAuth2Session.h#L64) in BOXOAuth2Session.h that says I must leave the redirect_uri in my app settings blank. However, this is impossible if you've had a redirect URI previously set. Attempting to clear my app's redirect URI in Box gives the error - \"OAuth2 redirect URL must specify a valid URL and must not be http://\".\r\n\r\nPerhaps adding some extra documentation in the sample app indicating what the redirect_uri should be would help."}}