PROJECT

[포스트맨] OAuth 테스트

grammiboii 2025. 6. 17. 13:23

 

사용법 정리

 

 

맨날 찾으면서 하는게 귀찮아서 구글을 예시로 써놔야겠다

 

 

 

 

 

https://oauth.pstmn.io/v1/callback

 

https://oauth.pstmn.io/v1/callback

Your call is authenticated A new window should open directing you back to the Postman app. If nothing happens, check to make sure your browser allows pop-ups.

oauth.pstmn.io


https://accounts.google.com/o/oauth2/v2/auth

 

로그인 - Google 계정

 

accounts.google.com

 

https://oauth2.googleapis.com/token

 

 

openid profile email

 

 

 

 

이거 URL로 수정하기

이거 안하면 Authorization 헤더가 구글걸로 들어가서 401뜬다.

 

 

포스트맨 환경변수 세팅

 

 

var token = pm.response.headers.get("Authorization");
pm.environment.set('accessToken', token);