feat: configurable label and badge for the provider sign-in button #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/14-sign-in-button-branding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #14
Stacked on pull request 13 (local accounts): until it is merged, this diff also shows its commits. Merge it after 13.
What
Two optional settings for the button that starts the OpenID Connect sign-in:
OIDC_BUTTON_LABEL: text of the button (at most 80 characters).OIDC_BUTTON_IMAGE: badge shown in place of the button; the label becomes its alternative text. Accepted: an absolutehttpsURL, or a path of the instance starting with/.Without them the page is unchanged. A malformed value makes the sign-in page fail with a logged
AuthSettingsError, like the other sign-in settings.A remote badge is fetched by the browser of each visitor from its host, with
referrerpolicy="no-referrer"; the documentation says so.Verified
yarn test: 62 tests pass, 4 new ones on the reading of the settings (default, label and badge, refused addresses such ashttp:,javascript:,data:, protocol-relative, relative; label too long).Not verified
🤖 Generated with Claude Code