대화형 작업이 2023년 6월 13일에 지원 중단되었습니다. 자세한 내용은
대화 작업 지원 중단을 참고하세요.
요청 확인
대화형 웹훅에 대한 요청은 승인 토큰으로 서명됩니다.
다음 형식을 사용하여 헤더에 삽입하세요.
google-assistant-signature: "<JWT token>"
인증 토큰은 JSON 웹 토큰 형식을 따릅니다.
여기서 잠재고객 필드 값은
앱 서명을 확인하려면 토큰의 압축을 풀고 잠재고객 필드가 올바른지 확인하세요.
앱의 프로젝트 ID와 일치합니다. 이 작업은 JWT 호환
사용자 인증 정보 라이브러리(예: Google API Node.js 클라이언트)를
또는 Actions on Google Node.js 클라이언트 라이브러리를 직접 사용하여
ConversationOptions#verification
옵션을 사용할 수도 있습니다.
const {conversation} = require('@assistant/conversation');
const app = conversation({verification: 'nodejs-cloud-test-project-1234'});
// HTTP Code 403 will be thrown by default on verification error per request.
JWT 형식은 다음과 같은 형식입니다.
{
"iss": "https://accounts.google.com"
"aud": [project-id],
"nbf": number,
"iat": number,
"exp": number,
"jti": string
}
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-10-15(UTC)
[null,null,["최종 업데이트: 2024-10-15(UTC)"],[[["Conversational webhook requests include an authorization token in the `google-assistant-signature` header for security purposes."],["This token is a JSON Web Token (JWT) containing an audience field that matches your Actions console project ID, enabling verification."],["You can verify the signature using a JWT library or the `ConversationOptions#verification` setting within the Actions on Google Node.js Client Library."],["The JWT structure includes standard fields like issuer, audience, issue and expiration timestamps, and a unique identifier."]]],[]]