0
두 가지 유형의 API 끝점이 있습니다. 공개 및 비공개. 개인용 엔드 포인트에서만 HMAC를 사용할 수 있습니까?전용 API 전용 HMAC
e.g.
GET https://api.example.com/items ... This is public API. No need HMAC.
POST https://api.example.com/users/john/friends ... This is private API. It needs HMAC. We want to confirm that John send this request by checking HMAC signature.
다음은 HMAC-인증 플러그인의 설치입니다. 그것은 공공 및 민간 구별이없는 것 같습니다.
curl -i -X POST \
--url http://localhost:8001/apis/api.example.com/plugins/ \
--data "name=hmac-auth"