Repository navigation
feat(users,branding,ui): OAuth defaults, domain validation, Microsoft display name, native links & brandable login - #1343
Merged
Conversation
Deploying simple-module-python with
|
| Latest commit: |
3108f38
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f26fce31.simple-module-python.pages.dev |
| Branch Preview URL: | https://feat-users-oauth-and-branded.simple-module-python.pages.dev |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Owner
Author
|
/ship passed on 3108f38 Pipeline Summary
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
allow_signup(for providers not inoauth_signup_providers) now receivesignup_default_roleinstead of the hard-codeduserrole, matching local self-signup.normalize_domainnow validates bare DNS hostnames after IDNA encoding (full-label ASCII matching, single trailing root dot including RFC 3490 dot equivalents, 63-char label / 253-char domain limits), rejecting URLs, paths, ports, queries, fragments, whitespace, newlines, empty labels, and leading/trailing hyphens.oauth_microsoft_display_name(default"Microsoft") onUsersSettingsand wired it into the built-in Microsoft OAuth provider, matchingoauth_oidc_display_name.LoginFormwithdata-native-linksostartSpaLinkInterceptionskips Inertia XHR interception and avoids CSPconnect-src 'self'errors on provider redirects.login_heading(≤ 120 chars) andlogin_tagline(≤ 300 chars) toBrandingSettings,BrandingOut,BrandingUpdate, per-tenant branding overrides (with blank/whitespace-only tenant overrides inheriting platform copy), shared Inertiabranding.loginHeading/branding.loginTaglineprops, and the/admin/brandingeditor (LoginCopyField, with canonical trim reconciliation on publish).LoginAsidelayout override onLayoutComponents(registry.registerLayout('LoginAside', ...)).LoginForm,WaitingOnYou,DemoSignIn,useLoginState, andsignInfrom@simple-module-py/users/ui(modules/users/users/ui/index.ts).Closes #1332
Closes #1336
Closes #1338
Closes #1339
Closes #1340
Verification
Browser QA (Playwright against live dev stack on
:8213/:5213)/users/login(default): rendered default i18n aside copy and Microsoft OAuth link (Continue with IIASA Account) withhref="/api/users/auth/microsoft/login"anddata-native-linkattribute./admin/branding: saved paddedlogin_headingandlogin_tagline, confirmed inputs reconciled to trimmed values with unsaved-changes counter cleared andPublish brandingdisabled, and verified persistence across full page reload./users/login(branded): confirmed custom heading and tagline rendered in the login split-aside while preserving the native OAuth button./admin/branding→ clear &/users/login(fallback): cleared both fields, published, and confirmed/users/loginfell back to default i18n copy.Local CI
make gen— clean (0 diff)make lint— passed (Ruff format/check,ty, Biome, host/moduletsc, locales, doc paths, i18n/API freshness, file-size/convention checks)make ci-doctor— passedmake test-js— passedPYTEST_WORKERS=8 make test-py— 12,300 passed, 57 skipped