Logo
Waktaverse Games Docs
인증 API

OAuth 인증

OAuth 인증을 수행합니다.

GET
/api/oauth/authorize

Authorization

Authentication<token>

In: cookie

Query Parameters

responseTypeRequiredstring

OAuth 종류

Value in: "code"
clientIdRequiredstring

클라이언트 ID

stateRequiredstring

CSRF 공격 방지 코드

callbackUriRequiredstring

Callback URI

challengeMethodRequiredstring

챌린지 종류

Value in: "S256"
challengeRequiredstring

챌린지 코드

curl -X GET "https://example.com/api/oauth/authorize?responseType=code&clientId=isol_dia&state=hello&callbackUri=http%3A%2F%2Flocalhost%3A7610%2Fcallback&challengeMethod=S256&challenge=ab12c3d4..." \
  -H "Authentication: <token>"

인증 성공시.

{
  "code": "b5b4d5...",
  "state": "hello",
  "callbackUri": "http://localhost:7610/callback"
}