Заметки к выпуску
Added
- Sign in with GitHub (
github-signin, typeApp, capabilitysignIn, provider keygithub) built onHostpanel.Sdk3.19.0 (ISignInPlugin), for host 0.12.0 and later. - The authorization address uses the OAuth 2.0 authorization code flow with PKCE (S256), the scopes
read:user user:email, the host's state unchanged, and the operator'sallow_signupchoice. - The code is exchanged with the client secret and the PKCE verifier; a token answer with an
error(wrong, reused or expired code) is an invalid token, a wrong client credential or callback address is not configured. - The identity's subject is the numeric GitHub user id. Only the primary, verified email from
/user/emailsis passed on; otherwise the email is empty and unverified. The public profile email is never used. - An unreachable GitHub, a server error or a rate limit answers provider unavailable; a refused token answers invalid token. The client secret is a secret setting; the access token is never stored, logged, thrown or returned.
Установка этой версии
- 1
Откройте список плагинов в админке Hostpanel.
- 2
Установите плагин с идентификатором «github-signin» и выберите версию 1.0.0.
- 3
Hostpanel скачивает этот подписанный пакет из реестра и проверяет подпись и версию SDK перед загрузкой.