페이지 트리

이 페이지의 이전 버전을 보고 있습니다. 현재 버전 보기.

현재와 비교 페이지 이력 보기

버전 1 현재 »

목적

Atlassian의 REST API 호출 할 때 코드에 ID/Password를 드러내고 싶지 않음

예) CURL 또는 script을 통해 rest API 접근

해결책

ID/Pasword를 base64로 생성하여 HTTP header에 적용

CURL 사용 예)
$ curl -D- -X GET -H "Authorization: Basic base64String" -H "Content-Type: application/json" "http://jira.almdemo.curvc.com/rest/api/latest/hello"

Base64 생성 방법:

Linux terminal 환경:
echo -n <userID>:<password> | openssl base64


  • 레이블 없음