{"issue":{"created_at":"2011-12-03T21:57:48Z","state":"open","updated_at":"2011-12-05T18:43:21Z","comments":2,"user":{"gravatar_id":"d0d32f876ca2d11150543abf553de33f","id":731261,"url":"https://api.github.com/users/shemusok","login":"shemusok","avatar_url":"https://secure.gravatar.com/avatar/d0d32f876ca2d11150543abf553de33f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"after I send GET\r\n\r\nhttp://server/oauth2/authorize?response_type=code&client_id=someid&redirect_uri=callbackuri\r\n\r\nto server, which use devise_oauth2_providable, I got \r\napprove/deny page in my browser\r\nI click 'approve'\r\nand got\r\n\r\nInvalid Authorization Request\r\nInvalid redirect_uri is given\r\n\r\nI found (with debugger) that \r\n1. at first run of Devise::Oauth2Providable::AuthorizationsController#authorize_endpoint\r\nreq.redirect_uri is OK (also I see it in the browser address line:) and it matches @client.redirect_uri\r\n2. at second run (after I click 'Approve') req.redirect_uri is empty (also, no value= property in code of \"approve/deny\" form)\r\n\r\nI'm not sure that it's an issue, but in any case I really need a help:)\r\nthanx \r\nrails 3.1.3\r\nruby 1.8.7\r\n","assignee":null,"number":28,"id":2439425,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"redirect_uri dissapears after \"Approve/Deny\" form","closed_at":null,"html_url":"https://github.com/socialcast/devise_oauth2_providable/issues/28","url":"https://api.github.com/repos/socialcast/devise_oauth2_providable/issues/28","milestone":null},"action":"created","comment":{"created_at":"2011-12-05T18:43:21Z","updated_at":"2011-12-05T18:43:21Z","user":{"gravatar_id":"f7a9dda86bc2ed293fbd8829cd83fd4d","id":185950,"url":"https://api.github.com/users/gregwinn","login":"gregwinn","avatar_url":"https://secure.gravatar.com/avatar/f7a9dda86bc2ed293fbd8829cd83fd4d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"shemusok, This does not relate to your question but how did you generate the views for oauth2_providable? I had tried \"rails g devise_oauth2_providable:install\" but no luck...\r\n\r\nThanks","id":3020996,"url":"https://api.github.com/repos/socialcast/devise_oauth2_providable/issues/comments/3020996"}}