{"pull_request":{"merged_at":null,"title":"Add optional realm support for OAuth","created_at":"2011-12-23T14:10:58Z","user":{"login":"qzchenwl","id":146802,"url":"https://api.github.com/users/qzchenwl","gravatar_id":"63a9939189572fab4f8b36659d719c2e","avatar_url":"https://secure.gravatar.com/avatar/63a9939189572fab4f8b36659d719c2e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2011-12-23T14:10:58Z","state":"open","review_comments":0,"id":627140,"patch_url":"https://github.com/yesodweb/authenticate/pull/3.patch","deletions":6,"closed_at":null,"html_url":"https://github.com/yesodweb/authenticate/pull/3","mergeable":null,"base":{"ref":"master","user":{"login":"yesodweb","id":930379,"url":"https://api.github.com/users/yesodweb","gravatar_id":"c224026a2005e5ce9a0e1a6defb9f893","avatar_url":"https://secure.gravatar.com/avatar/c224026a2005e5ce9a0e1a6defb9f893?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png"},"sha":"88c14135b33c20347683b8786afed8fdb1f73df4","repo":{"created_at":"2011-11-27T15:23:57Z","git_url":"git://github.com/yesodweb/authenticate.git","open_issues":1,"watchers":4,"fork":true,"updated_at":"2011-12-23T08:10:16Z","id":2861387,"language":"Haskell","html_url":"https://github.com/yesodweb/authenticate","name":"authenticate","master_branch":null,"description":"Authentication methods for Haskell web applications.","url":"https://api.github.com/repos/yesodweb/authenticate","clone_url":"https://github.com/yesodweb/authenticate.git","pushed_at":"2011-12-19T15:12:34Z","forks":2,"ssh_url":"git@github.com:yesodweb/authenticate.git","owner":{"login":"yesodweb","id":930379,"url":"https://api.github.com/users/yesodweb","gravatar_id":"c224026a2005e5ce9a0e1a6defb9f893","avatar_url":"https://secure.gravatar.com/avatar/c224026a2005e5ce9a0e1a6defb9f893?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png"},"homepage":"","svn_url":"https://github.com/yesodweb/authenticate","size":168,"private":false},"label":"yesodweb:master"},"issue_url":"https://github.com/yesodweb/authenticate/issues/3","body":"The optional authentication refer to [Authorization Header](http://oauth.net/core/1.0/#rfc.section.5.4.1) is a special field, it must be placed closest to `OAuth ` if exists.\r\n\r\nThe current version place it to the wrong place if it exists.\r\n\r\n    renderAuthHeader = (\"OAuth \" `BS.append`). BS.intercalate \",\" . map (\\(a,b) -> BS.concat [paramEncode a, \"=\\\"\",  paramEncode b, \"\\\"\"]) . filter ((`elem` [\"realm\", \"oauth_token\", \"oauth_verifier\", \"oauth_consumer_key\", \"oauth_signature_method\", \"oauth_timestamp\", \"oauth_nonce\", \"oauth_version\", \"oauth_callback\", \"oauth_signature\"]) . fst)\r\n\r\nThe other problem is that you cannot set realm value.","number":3,"additions":11,"commits":4,"diff_url":"https://github.com/yesodweb/authenticate/pull/3.diff","url":"https://api.github.com/repos/yesodweb/authenticate/pulls/3","_links":{"review_comments":{"href":"https://api.github.com/repos/yesodweb/authenticate/pulls/3/comments"},"html":{"href":"https://github.com/yesodweb/authenticate/pull/3"},"self":{"href":"https://api.github.com/repos/yesodweb/authenticate/pulls/3"},"comments":{"href":"https://api.github.com/repos/yesodweb/authenticate/issues/3/comments"}},"merged_by":null,"comments":0,"head":{"ref":"master","user":{"login":"qzchenwl","id":146802,"url":"https://api.github.com/users/qzchenwl","gravatar_id":"63a9939189572fab4f8b36659d719c2e","avatar_url":"https://secure.gravatar.com/avatar/63a9939189572fab4f8b36659d719c2e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"sha":"69823a20aaf3d61b0028f4d7d669086047fefa5a","repo":{"created_at":"2011-12-19T14:02:23Z","git_url":"git://github.com/qzchenwl/authenticate.git","open_issues":0,"watchers":1,"fork":true,"updated_at":"2011-12-23T13:52:20Z","id":3012333,"language":"Haskell","html_url":"https://github.com/qzchenwl/authenticate","name":"authenticate","master_branch":null,"description":"Authentication methods for Haskell web applications.","url":"https://api.github.com/repos/qzchenwl/authenticate","clone_url":"https://github.com/qzchenwl/authenticate.git","pushed_at":"2011-12-23T13:52:19Z","forks":0,"ssh_url":"git@github.com:qzchenwl/authenticate.git","owner":{"login":"qzchenwl","id":146802,"url":"https://api.github.com/users/qzchenwl","gravatar_id":"63a9939189572fab4f8b36659d719c2e","avatar_url":"https://secure.gravatar.com/avatar/63a9939189572fab4f8b36659d719c2e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"homepage":"","svn_url":"https://github.com/qzchenwl/authenticate","size":108,"private":false},"label":"qzchenwl:master"},"changed_files":1,"merged":false},"number":3,"action":"opened"}