revoke 503 에러
String url = "https://auth.worksmobile.com/oauth2/v2.0/revoke";
HttpClient httpClient = HttpClient.newHttpClient();
String requestBody = String.format("client_id=%s&client_secret=%s&token=%s&token_type_hint=%s",
            authConfig.getClientId(),
            authConfig.getClientSecret(),
            token,
            tokenTypeHint
        );
        HttpRequest request = HttpRequest.newBuilder()
                .POST(HttpRequest.BodyPublishers.ofString(requestBody))
                .header("Content-Type", "application/x-www-form-urlencoded")
                .uri(URI.create(url))
                .build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString()); 
위 코드에서 revoke를 요청 했을 때 response.statusCode()가 503을 반환하고 바디는 비어있습니다.
실제로 revoke도 안 돼요!!
503에러를 봤을 때 일시적인 서버 오류라고 되어있는데 해결 방법을 모르겠네요!! 부디 도와주세요ㅠㅠ
게시글에 새로운 댓글이 달리면 알림을 전송합니다.
                
댓글0
궁금한 점을 해결하지 못하셨나요?
지금 바로 NAVER WORKS 사용자들에게 물어보세요!