{"action":"created","issue":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/947","repository_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper","labels_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/947/labels{/name}","comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/947/comments","events_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/947/events","html_url":"https://github.com/doorkeeper-gem/doorkeeper/issues/947","id":213770446,"number":947,"title":"Make redirect_uri optional","user":{"login":"Linuus","id":379823,"avatar_url":"https://avatars2.githubusercontent.com/u/379823?v=4","gravatar_id":"","url":"https://api.github.com/users/Linuus","html_url":"https://github.com/Linuus","followers_url":"https://api.github.com/users/Linuus/followers","following_url":"https://api.github.com/users/Linuus/following{/other_user}","gists_url":"https://api.github.com/users/Linuus/gists{/gist_id}","starred_url":"https://api.github.com/users/Linuus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linuus/subscriptions","organizations_url":"https://api.github.com/users/Linuus/orgs","repos_url":"https://api.github.com/users/Linuus/repos","events_url":"https://api.github.com/users/Linuus/events{/privacy}","received_events_url":"https://api.github.com/users/Linuus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-13T13:45:01Z","updated_at":"2018-02-07T17:08:23Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nI have a question about the `redirect_uri` being required. I've seen a few other issues about this but they are all closed and I didn't find the answers that I need :)\r\n\r\nLet's say someone is building an iOS application. They would use the \"client_credentials flow\" to authenticate against doorkeeper. When they create the app in doorkeeper, what would they put in the redirect_uri field? Isn't it weird to just add some dummy uri? Since they will never use \"authorization code flow\" the redirect uri will never be used.\r\n\r\nIsn't it appropriate to just make it mandatory for authorization code flow requests? So, if I don't enter a redirect_uri for my app, I can't use the \"authorization code flow\"? It's not like we need to redirect to _any_ uri because of this, right?\r\n\r\nI think Twitter is doing something similar on their callback url:\r\n```\r\nTo restrict your application from using callbacks, leave this field blank.\r\n```\r\n\r\nPerhaps I'm missing something obvious here so please enlighten me :D"},"comment":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/comments/363839277","html_url":"https://github.com/doorkeeper-gem/doorkeeper/issues/947#issuecomment-363839277","issue_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/947","id":363839277,"user":{"login":"nbulaj","id":1443426,"avatar_url":"https://avatars2.githubusercontent.com/u/1443426?v=4","gravatar_id":"","url":"https://api.github.com/users/nbulaj","html_url":"https://github.com/nbulaj","followers_url":"https://api.github.com/users/nbulaj/followers","following_url":"https://api.github.com/users/nbulaj/following{/other_user}","gists_url":"https://api.github.com/users/nbulaj/gists{/gist_id}","starred_url":"https://api.github.com/users/nbulaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbulaj/subscriptions","organizations_url":"https://api.github.com/users/nbulaj/orgs","repos_url":"https://api.github.com/users/nbulaj/repos","events_url":"https://api.github.com/users/nbulaj/events{/privacy}","received_events_url":"https://api.github.com/users/nbulaj/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T17:08:23Z","updated_at":"2018-02-07T17:08:23Z","author_association":"COLLABORATOR","body":"As I can see [redirect_uri can be blank](https://tools.ietf.org/html/rfc6749#section-4.1.1). So we need to see what we can do on Doorkeeper side"}}
{"actor":{"display_login":"nbulaj"}}