fake-oauth2-server icon indicating copy to clipboard operation
fake-oauth2-server copied to clipboard

Unable to generate token

Open callmekatootie opened this issue 6 years ago • 0 comments

I have setup the fake oauth 2 server and updated by SUT to use the same values as configured in the oauth 2 server.

I reach the screen where I am asked to enter the username and email and generate the token.

However, once I enter the values and click on generate, I get an error (this is from the logs for the fake oauth2 server):

GET /login-as?name=sdfsdf&email=sdfsdf%40sdfsdf.com&expires_in=3600 307 Authorization: - Debug info: - Redirect: http://localhost:3000/oauth/callback?code=C-U6R

POST /oauth2/v4/token 401 Authorization: - Debug info: expected redirect_uri: undefined, actual: http://localhost:3000/oauth/callback Redirect: -

See 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.

Any idea what I might be doing wrong?

callmekatootie avatar Oct 19 '18 16:10 callmekatootie