Skip to content

bug: access token retrieved from incorrect json path and stored under wrong variable #110

Description

@jacob-cloudappi

Bug Report

Current behavior:

When requesting an access token, the script expects a data object containing an access_token property. Additionally, the token is stored in a variable named OAuth2, while all test cases reference a variable named oauth in their Authorization header.

Expected behavior:

The token should be stored in a variable named "oauth" and retrieved from json.access_token instead of json.data.access_token, as this is the standard path for accessing the value.

Steps to reproduce:

  1. Generate a collection with authorization configured
  2. Import the collection into Postman
  3. Review the request that retrieves the access token and the Authorization header in each test case.

Other information:

Access token request script:
Image
Test cases Authorization header value:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions