I am testing an OAuth 2.0 authentication flow in postman.
- I used
Authorisationtab,New Access Tokenbutton to start the auth process.
Added the information in the form & pressed the
Requested Tokenbutton. This opened a browser instance, in which I keyed-in the required credentials for authenticating a user.Once the auth steps are completed, I am redirected to the localhost page in the browser instance that was opened for auth steps. (Note, redirect url is given during the filling in of the form for request-token and is part of the specs for OAuth 2.0.
This is where things go strange. On the redirected page on the localhost, I am still shown as not-signed-in, as there is no JWT (JSON Web Token) in the cookie/ local-storage.
- However, back on the Postman main interface. If I press the
Request Tokenonce again, I get the JWT, which is what I want.
QUESTION:
Why do I have to press the request token again to fetch the JWT token. Presumably the JWT token was not returned by the auth server, hence the browser instance still not signed-in? Does pressing the request token make another POST request to auth server to retrieve the JWT token. What is the process flow here?
And how can I debug this?
Edit:
Pressing the sign-in button again on the web app, leads to the auth server error page. I suspect this is because the server has the auth token for the user so does not let the user signin again?


