Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth2 authentication cookie not been sent on request #9901

Open
tbenshalom opened this issue May 2, 2021 · 0 comments
Open

OAuth2 authentication cookie not been sent on request #9901

tbenshalom opened this issue May 2, 2021 · 0 comments

Comments

@tbenshalom
Copy link

Describe the Issue
After generating an OAuth2 authentication token, the request that use the token failed because an IDP cookie not been sent.
The flow is working correctly on Postman v7.36.5.

Steps to Reproduce
It is a little bit tricky to reproduce, since it required multiple pieces:

  1. Create an application that support Auth2 (implicit) authentication
  2. In Postman, create new "GET" request with a url to your app.
  3. Go to "Authorization" tab:
    3.1 select "OAuth 2.0" type
    3.2 Fill in the fields in "Configure New Token"
    3.3 Click on "Get New Access Token", fill in login details on the pop-up window.
    3.4 After receiving a token, click on "Use Token" button.
  4. Click "Send", to send the request

In my case, at that point, I receive the IDP (Okta) error page.

Downgrade to Postman v7.36.5, and with the same flow I got a valid response from my application.

With some help from Okta support, we found that a cookie that been sent to the Client on the "Generate New Token" process, not been sent in the request. If we add that cookie manually to the request, the request been sent successfully to my application and returned a valid response.
If I will click on "Generate New Token" again, the IDP login window will not pop-up, and a valid token will be generated, so we also assume that the cookie been saved in Postman, but not been sent with the request to my application.

Environment Information

  • Postman Version: 8.3.0
  • Operating System: Windows 10 64 bit

Thanks,
Tal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants