Postman請求Https接口與認證


Postman is a collaboration platform for API development. Postman's features simplify each step of building an API and streamline collaboration so you can create better APIs—faster. Quickly and easily send REST, SOAP, and GraphQL requests directly within Postman.

postman官網下載:https://www.postman.com/downloads/

單向證書認證

無需任何處理,只需要把http://更換為https://。

雙向證書認證

1. 關閉SSL證書校驗

File->Setting->General,關閉“SSL certificate verification”

2. 添加客戶端證書

Setting->Certificates

CRT file為客戶端密鑰庫的公鑰,KEY file為客戶端密鑰庫的私鑰,Passphrase為私鑰的密碼(如果有的話)。

發送請求時postman會自動附加證書信息。

Authorization授權

Basic Auth:基礎身份認證,用戶名密碼

No Auth:無認證

Bearer Token:Token驗證,JWT中使用

Digest Auth:摘要認證

OAuth 1.0 / OAuth 2.0

Hawk Authentication:一個HTTP認證方案,使用MAC(Message Authentication Code,消息認證碼算法)算法。

AWS Signature:AWS的使用者可以使用自定義的HTTP方案基於HMAC的加密算法去認證。

 

參考:

1. Postman請求Https接口

2. postman認證使用篇(五)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM