연동 가이드 Integration Guide > /wiki/spaces/KS4GFP/pages/547192833
목차 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
/auth/validation
Description
accessToken 토큰의 유효성 및 플레이어의 유효성을 검증합니다Verifies the validity of the accessToken and the player.
Method
POST
Request Headers
Name | Type | Mandatory | Description |
Content-Type | String | Y | "application/json;charset=UTF-8" |
appSecret | String | Y앱 | 시크릿App Secret |
Authorization | String | Y | Authorization: KakaoAK {ADMIN_KEY} |
kgAppId | String | Y | KG 앱 아이디App ID |
platform | String (Enum) | Y | 접속 플랫폼 Access Platform (web, launcher, mobile, pc) |
accessToken | String | Y | Access Token |
playerId | String | N | 플레이어 아이디. 비교 검증 용도. |
런처(스퀘어) 사용 시 주의사항
...
런처(스퀘어)의 플랫폼 액세스 토큰 platform 타입은 launcher 입니다.
...
Player ID. Used for comparison validation. |
Note for Launcher (Square) Users
The platform type for the platform access token in the launcher (Square) is "launcher".
When performing SDK login through the launcher (FKGTPlayer::LoginWithBridgeToken) 후 결과로 전달되는 플랫폼 액세스 토큰 platform 타입은 pc 입니다, the platform type for the access token is "pc".
Request Body
없음None
Response Status Code
Status Code | Status Code 설명Description | Status Code 상세 설명Detailed Description | |
---|---|---|---|
200정상 | 응답Normal Response | 정상Normal | |
400 | Bad Request파싱되지 않는 요청 데이터. 필수 파라미터 부족 or 파라미터 타입 오류 | Unparsable request data, missing mandatory parameters, or parameter type error | |
401 | Unauthenticated인증 | 실패 > 게임 kick 처리Authentication failed > Game Kick | |
406 | Not Acceptable | 처리 불가 > 게임 kick 처리Cannot process > Game Kick | |
4xx (custom status) | 플레이어 이상 상태 | 재로그인을 통해 이상 상태 해제 후 게임 진입 필요 > 게임 kick 처리Player Abnormal State | Re-login required to clear abnormal state > Game kick |
500 | Internal Server Error | 서버 시스템 내부 오류Internal server error | |
503 | Service Unavailable | 서비스가 가능하지 않은 상태 (예, 내부 서버간 Service unavailable (e.g., internal server timeout) |
Response Body
Name | Type | Description |
---|---|---|
player | PlayerAllResponse플레이어 | 정보Player information |
PlayerAllResponse
Name | Type | Description |
---|---|---|
kgAppId | String | KG 앱 아이디App ID |
playerId | String플레이어 | 아이디Player ID |
status | String플레이어 | 상태Player status |
nickname | String | 닉네임Nickname |
data | Map부가 | 데이터Additional data |
Example Request
|
...
|