Skip to content

Postman Pre-request Script generator for Escher authentication

Notifications You must be signed in to change notification settings

ignaczistvan/escher-postman

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postman Pre-request Script generator for Escher authentication

Usage

In Postman, create an environment with your Escher details:

escher-credentialScope: ingatlancom
escher-accessKeyId: moderation_icom_v1
escher-apiSecret: abcd1234

Copy the contents of the postman-pre-request.js file to the Pre-request Script tab.

Add the following headers to the request:

X-Escher-Auth: {{auth}}
X-Escher-Date: {{date}}

You can still use other environment variables as header parameters or as part of the URL:

X-Correlation-Id: {{myCorrelationId}}
or
{{baseUrl}}/users/1

Development

Install requirements

npm install

npm install -g browserify

Generate pre-request script

browserify node-postman.js > postman-pre-request.js

Debug

You can test the endpoint with client.js using node.

Sometimes you have to play with Postman Interceptor settings.

About

Postman Pre-request Script generator for Escher authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%