{"action":"opened","issue":{"url":"https://api.github.com/repos/patientsknowbest/fake-oauth2-server/issues/3","repository_url":"https://api.github.com/repos/patientsknowbest/fake-oauth2-server","labels_url":"https://api.github.com/repos/patientsknowbest/fake-oauth2-server/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/patientsknowbest/fake-oauth2-server/issues/3/comments","events_url":"https://api.github.com/repos/patientsknowbest/fake-oauth2-server/issues/3/events","html_url":"https://github.com/patientsknowbest/fake-oauth2-server/issues/3","id":372030593,"node_id":"MDU6SXNzdWUzNzIwMzA1OTM=","number":3,"title":"Unable to generate token","user":{"login":"callmekatootie","id":2317133,"node_id":"MDQ6VXNlcjIzMTcxMzM=","avatar_url":"https://avatars1.githubusercontent.com/u/2317133?v=4","gravatar_id":"","url":"https://api.github.com/users/callmekatootie","html_url":"https://github.com/callmekatootie","followers_url":"https://api.github.com/users/callmekatootie/followers","following_url":"https://api.github.com/users/callmekatootie/following{/other_user}","gists_url":"https://api.github.com/users/callmekatootie/gists{/gist_id}","starred_url":"https://api.github.com/users/callmekatootie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callmekatootie/subscriptions","organizations_url":"https://api.github.com/users/callmekatootie/orgs","repos_url":"https://api.github.com/users/callmekatootie/repos","events_url":"https://api.github.com/users/callmekatootie/events{/privacy}","received_events_url":"https://api.github.com/users/callmekatootie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T16:33:13Z","updated_at":"2018-10-19T16:33:13Z","closed_at":null,"author_association":"NONE","body":"I have setup the fake oauth 2 server and updated by SUT to use the same values as configured in the oauth 2 server.\r\n\r\nI reach the screen where I am asked to enter the username and email and generate the token.\r\n\r\nHowever, once I enter the values and click on generate, I get an error (this is from the logs for the fake oauth2 server):\r\n\r\n```\r\nGET /login-as?name=sdfsdf&email=sdfsdf%40sdfsdf.com&expires_in=3600 307 Authorization: - Debug info: - Redirect: http://localhost:3000/oauth/callback?code=C-U6R\r\nPOST /oauth2/v4/token 401 Authorization: - Debug info: expected redirect_uri: undefined, actual: http://localhost:3000/oauth/callback Redirect: -\r\n```\r\n\r\nSee the last line. It appears that it is reading the redirect uri from the session, which it did indeed set earlier, as can be seen in the `GET` request, but it is not able to read it in the POST request.\r\n\r\nAny idea what I might be doing wrong?"}}
{"actor":{"display_login":"callmekatootie"}}