푸닥거리

postman 에서 oauth2인증 후 json 데이타 보내기

┌(  ̄∇ ̄)┘™ 2022. 4. 22. 20:33
728x90

postman 에서 oauth2인증 후 json 데이타 보내기

 

1. postman 에서 oauth2인증

 

New Collection

-> Type : OAuth 2.0

-> Add auth data to : Request Headers

-> Access Token : Configure New Token 에서 받아온 토큰값을 입력 후 옆에 싱크 버튼 클릭

 

Configure New Token

-> Grant Type : Authorization Code

-> Callback URL : https://oauth.pstmn.io/v1/callback?code=authiruztion code

-> Auth URL

-> Access Token URL

-> Client ID

-> Client Secret

-> Scope

-> Client Authentication : Send as Basic Auth header

-> Get New Access Token : 버튼을 누르면 Access Token을 받아옴

 

 

 

 

 

2. postman 에서 json 데이타 보내기

 

-> 1에서 Access Token을 싱크 한 후 

-> New Request 에서 호출 할 API URL을 입력 후

-> Body 의 raw 에 JSON을 선택

-> json 데이터 입력 후 Send 클릭하여 응답값 확인

 

 

728x90