AssertionType

應用程式可在權杖端點中支援的斷言類型。

列舉
UNKNOWN_ASSERTION_TYPE 回溯相容性不明的斷言類型。已拒絕。
ID_TOKEN

OpenIDConnect ID 權杖。這是 grantType 設為 urn:ietf:params:oauth:grant-type:jwt-bearer 的 JWT 權杖。這組權杖與 Google 登入資料庫產生的憑證相同,如需記錄驗證資訊,請前往 https://developers.google.com/identity/sign-in/web/backend-auth。如要進一步瞭解 JWT 權杖,請參閱 https://tools.ietf.org/html/rfc7523#section-2.1

如果使用者嘗試連結現有帳戶,這個權杖會包含非標準鍵/值組合 intent=get

成功回應時,請如根據 https://tools.ietf.org/html/rfc6749#section-4.1.4 以及 https://tools.ietf.org/html/rfc6749#section-4.2.2.1 的回應。

ACCOUNT_CREATION 這個做法與 ID_TOKEN 相同,差別在於系統會將非標準鍵「intent」設為「create」,表示使用者嘗試建立應與 JWT 的 sub 欄位中 Google ID 相關聯的新帳戶,就像其他 Google 登入用途一樣。回應與 ID_TOKEN 相同。