question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with OAuth 1.0a and add Authorization in Request Headers

See original GitHub issue

Version and environment information:

  1. Newman Version (can be found via newman -v): 3.5.2
  2. OS details (type, version, and architecture): Win 10 64
  3. Are you using Newman as a library, or via the CLI? via the CLI
  4. Did you encounter this recently, or has this bug always been there: always
  5. Expected behaviour:
  6. Command / script used to run Newman: newman run api_reg2.postman_collection.json -e max_stage_api_auto.postman_environment.json -d All_brand.csv
  7. Sample collection, and auxilliary files (minus the sensitive details):
  8. Screenshots (if applicable): https://goo.gl/Qrlh3C POST work good BUT GET 401

Looks like it don’t send Authorization in Request Headers

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jun 6, 2017

If i try to use in the pre-request script btoa() methods i’m getting this error:

There was an error in evaluating the Pre-request Script: TypeError: btoa is not a function

Before the Postman last update it was working!!

0reactions
maxhersoncommented, Aug 9, 2017

We find out issue, I clone POST with body, then change it to GET body was hidden BUT after export collection body was there for GET request. This is the reason.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set authorization headers for OAuth1.0a - Stack Overflow
I'm trying to write a script in GO that will make make the POST request, grab the data and update our database. Now...
Read more >
OAuth 1.0a Authorization Header - Akana Documentation
OAuth 1.0a uses the Authorization header as a way to authenticate the client to the OAuth Provider itself. In OAuth 2.0, this header...
Read more >
Solved: OAuth 1.0 Generate Authorization header
I am looking for a solution to generate an Authorization header (with OAuth 1.0 policy) and pass it to an Proxy endpoint service....
Read more >
using Oauth1.0 to create an "authorization" header.
This works fine as it is without issue and can pull data successfully: request. AddHeader("Content-Type", "application/json"); request.
Read more >
OAuth 1.0a | Docs | Twitter Developer Platform
OAuth 1.0a is the user-authentication method for authenticating with the Twitter API. This method allows an authorized app to act on behalf of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found