웹 인증 API
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
통합자는 인증 목적으로 사용자를 리디렉션하는 웹 호스트를 구현해야 합니다. 이 인증은 모달리티는 다르지만 용도는 Android 인증에서 제공하는 인증과 동일합니다.
이 웹 호스트에는 모바일 친화적인 웹사이트가 있어야 합니다.
웹 호스트는 사용자 에이전트 헤더 값을 기준으로 모바일 웹 요청과 데스크톱 웹 요청을 비교하여 판단해야 합니다. 모바일 웹 요청으로 제공되는 페이지는 Android 및 iOS에서 모바일 웹에 적합해야 합니다. 사용자 에이전트 헤더 값 외에
클라이언트는 이 사용자가 요청하는 환경 (데스크톱 또는 웹)에 관한
다른 힌트를 제공하지 않습니다.
서버는 GET을 사용하여 HTTPS 프로토콜을 구현해야 합니다. 경로와 호스트는 통합자가 정의할 수 있습니다. 통합자는 URL 길이 2,048자(영문 기준)를 지원해야 합니다. 여기에는 스키마, 호스트, 포트, 경로, 매개변수가 포함됩니다.
모든 매개변수는 URL 인코딩 전에 UTF-8로 인코딩됩니다.
요청
요청이 있을 경우 Google은 다음을 URL 매개변수로 제공합니다.
필드 |
gspMajorVersion
|
int
이 요청의 주 버전 번호입니다.
|
gspAuthenticationRequest
|
AuthenticationRequest
인증 요청입니다.
|
gspAssociationId
|
string
이 ID가 있는 경우 여기에는 통합업체가 보안 질문을 하는 사용자의 사용자 인증 정보를 찾는 데 사용하는 식별자가 포함됩니다. 이 속성이 없으면 사용자는 계정 ID를 변경할 수 있습니다.
|
gspCallbackUrl
|
string
Google에서 인증 흐름을 완료하기 위해 사용자를 리디렉션할 URL입니다. 이 값은 URL로 인코딩됩니다.
|
응답
인증이 완료되면 사용자는 HTTPS GET을 사용하여 gspCallbackUrl
로 리디렉션되어야 합니다. 이 URL에는 다음과 같은 쿼리 매개변수가 있어야 합니다.
필드 |
gspResult
|
int
100
|
인증이 완료되었습니다.
|
201
|
사용자가 흐름을 수동으로 취소했으며 흐름이 중단되어야 합니다.
|
202
|
치명적인 이유로 인증에 실패했으며 흐름을 중단해야 합니다.
|
|
gspAuthenticationResponse
|
AuthenticationResponse
인증 응답입니다.
|
All rights reserved. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-25(UTC)"],[[["Integrators must implement a mobile-friendly web host to redirect users for authentication, similar to Android authentication but utilizing a web-based approach."],["The web host should distinguish between mobile and desktop requests using the user-agent header and deliver a mobile-friendly experience for both Android and iOS."],["The server must use HTTPS GET with a definable path and host, supporting URLs up to 2,048 characters, including parameters encoded in UTF-8 before URL encoding."],["Google provides URL parameters for the request including version, authentication request, association ID (for credential lookup), and a callback URL for redirection after authentication."],["Upon authentication completion, the user is redirected to the provided callback URL with parameters indicating the result (success, cancellation, or failure) and an authentication response."]]],["Integrators must host a mobile-friendly website for user authentication, distinguishing between mobile and desktop requests via the user-agent header. The server must utilize HTTPS GET, with a definable path and host, supporting URLs up to 2,048 characters. Google provides parameters like `gspMajorVersion`, `gspAuthenticationRequest`, `gspAssociationId`, and `gspCallbackUrl` within the request. Upon authentication completion, the user is redirected to `gspCallbackUrl` via HTTPS GET, including `gspResult` and `gspAuthenticationResponse` parameters. All parameters are UTF-8 and URL-encoded.\n"]]