{"action":"opened","issue":{"url":"https://api.github.com/repos/titarenko/OAuth2/issues/63","labels_url":"https://api.github.com/repos/titarenko/OAuth2/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/titarenko/OAuth2/issues/63/comments","events_url":"https://api.github.com/repos/titarenko/OAuth2/issues/63/events","html_url":"https://github.com/titarenko/OAuth2/issues/63","id":63043651,"number":63,"title":"How to return the user to the original url","user":{"login":"ProNotion","id":1590398,"avatar_url":"https://avatars.githubusercontent.com/u/1590398?v=3","gravatar_id":"","url":"https://api.github.com/users/ProNotion","html_url":"https://github.com/ProNotion","followers_url":"https://api.github.com/users/ProNotion/followers","following_url":"https://api.github.com/users/ProNotion/following{/other_user}","gists_url":"https://api.github.com/users/ProNotion/gists{/gist_id}","starred_url":"https://api.github.com/users/ProNotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProNotion/subscriptions","organizations_url":"https://api.github.com/users/ProNotion/orgs","repos_url":"https://api.github.com/users/ProNotion/repos","events_url":"https://api.github.com/users/ProNotion/events{/privacy}","received_events_url":"https://api.github.com/users/ProNotion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-19T17:19:35Z","updated_at":"2015-03-19T17:19:35Z","closed_at":null,"body":"Because the redirect url is preconfigured how can we ensure the user user is redirected back to their original url? Is the only way to store something in session prior to the login?\r\n\r\nAside from this thanks so much for sharing as I've had a nightmare trying to get a working OAuth2 solution to fit into an existing app. I've written a Yahoo provider also now so will send a pull request when I'm finished.\r\n\r\nThanks, Simon"}}