Заметки к выпуску
Added
- Sign in with Google through the SDK sign-in contract (
ISignInPlugin, capabilitysignIn, provider keygoogle), built onHostpanel.Sdk3.19.0 and needing host 0.12.0 or later. - OpenID Connect authorization code flow with PKCE (S256), scopes
openid email profile, the host's state and nonce, and an optional login hint. - The code is exchanged at the token endpoint named by Google's discovery document with the client id and secret.
- The id_token is verified before an identity is answered: an RS256 signature by a key from Google's published key set (cached, read again for an unknown key id at most once a minute), a Google issuer, the client id as audience (and
azp), expiry and issue time with a two-minute skew, and the attempt's nonce. Any other algorithm,noneincluded, is refused. - The email is passed on as verified only when Google sets
email_verified. - Optional Google Workspace domain setting: the
hdclaim must match, and the domain is passed to Google as a hint. - Settings: client ID, client secret (a secret setting, stored encrypted by the host, never logged or thrown) and the Workspace domain, with English, Russian and Armenian texts.
Установка этой версии
- 1
Откройте список плагинов в админке Hostpanel.
- 2
Установите плагин с идентификатором «google-signin» и выберите версию 1.0.0.
- 3
Hostpanel скачивает этот подписанный пакет из реестра и проверяет подпись и версию SDK перед загрузкой.