개발 가이드연동 가이드1. 휴대폰번호 로그인 인증 요청 (Authorization code 발급)1.1 설명
[자동로그인 관련]
[WebView 관련]
URL : https://id.passlogin.com/oauth2/authorize?response_type=code&client_id={client_id}&redirect_uri={encoded_redirect_uri}&state={encoded_state}&prompt={prompt}&isHybrid=Y 1.3 프로토콜HTTPS 1.4 HTTP메서드
파라미터에 대해서 파라미터, 타입, 필수여부, 설명으로 분류되어 내용을 제공하는 테이블
[PC/Mobile Web] https://id.passlogin.com/oauth2/authorize?client_id=clientId2&redirect_uri=https%3A%2F%2Fwww.sample.com%2Flogin_callback&response_type=code&state=12345&prompt=select_account [WebView] https://id.passlogin.com/oauth2/authorize?client_id=clientId2&redirect_uri=https%3A%2F%2Fwww.sample.com%2Flogin_callback&response_type=code&state=12345&isHybrid=Y 1.7 응답응답에 대해서 파라미터, 타입, 필수여부로 분류되어 제공되는 테이블
정상 응답 HTTP/1.1 302 Found Location: https://www.sample.com/login_callback?code=0fdVa6&state=12345 에러 응답 HTTP/1.1 400 { "error" : "invalid_request", "message" : "parameter error" } 2. 휴대폰번호 로그인 액세스 토큰 발급 요청 (Access Token 발급)2.1 설명
URL : https://id.passlogin.com/oauth2/token?grant_type={grant_type}&client_id={client_id}&client_secret={client_secret}&code={code}&state={encoded_state} HTTPS 2.4 HTTP메서드POST 2.5 요청헤더Authorization: Basic {base64_encode({client_id}:{client_Secret})} Content-Type: application/x-www-form-urlencoded2.6 파라미터 파라미터에 대해서 파라미터, 타입, 필수여부, 설명으로 분류되어 내용을 제공하는 테이블
curl -X POST 'https://id.passlogin.com/oauth2/token' -H 'Authorization: Basic Y2xpZW50SWQyOm1DbGllbnRTZWNyZXQ=' -H 'Content-Type: application/x-www-form-urlencoded' -d 'grant_type=authorization_code' -d 'code=0fdVa6' -d 'state=12345'2.8 응답 응답에 대해서 파라미터, 타입, 설명으로 분류되어 내용을 제공하는 테이블
정상 응답 HTTP/1.1 200 OK { "access_token":"G/Tit+vKtqcj3rGTvqdGzWN5JskQuts5Tx4qGennVVxr/dNbRf88qBviQAWBtKDKnIeWM8Wca6XIO/H9MW1JYHaVXFqhQR8l9ezk8x+2XX8=", "token_type":"bearer", "expires_in":"3600", "state":"12345" } 에러 응답 HTTP/1.1 500 Internal Server Error { "error" : "server_error", "message" : "Invalid authorization code: 0fdVa6" } 에러코드 안내에러 코드 별 설명 및 조치 방안을 안내합니다. 에러코드에 대해서 에러코드, 에러 메시지, 조치방안으로 분류되어 내용을 제공하는 테이블
|