Commit 1e8c728
committed
fix(auth-ui): org-first resolution everywhere + org password-complexity policy
Extends the resolveOrg org-first/default-org fallback to every remaining org-scoped read so login/SSO/signup/reset use the ORG's IdPs, branding, login settings and password policy instead of the instance/default context - matching the old app's 'organization ?? getDefaultOrg()' invariant on every page.
- SSO IdP-list flows (sso-link/action/management) route through the idp-providers getActiveIdPs choke point, which now resolves the org. - /login loader threads a resolved org into ?organization on direct entry so the whole ceremony inherits it. - All remaining per-screen + service settings/branding reads (login method/password, signup, password reset, mfa/otp/webauthn/session/authorize) resolve org-first. - Re-implement the org password-complexity policy (previously fetched nowhere): a live requirement checklist + client/server validation driven by getPasswordComplexity across signup/reset/change. findUser stays instance-wide (intentional); sso-callback left as-is (WIP-adjacent).1 parent 14b94e1 commit 1e8c728
37 files changed
Lines changed: 1285 additions & 184 deletions
File tree
- app
- components/auth-form
- modules
- auth/providers/fake
- i18n/locales
- resources
- authorize
- login
- mfa
- otp
- password
- schemas
- session
- signup
- sso
- webauthn
- routes
- login
- password
- signup
- cypress
- component
- resources
- schemas
- sso
- routes
- login
- password
- signup
- support/node
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
| |||
117 | 124 | | |
118 | 125 | | |
119 | 126 | | |
| 127 | + | |
120 | 128 | | |
121 | 129 | | |
122 | 130 | | |
| |||
151 | 159 | | |
152 | 160 | | |
153 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
154 | 169 | | |
155 | 170 | | |
156 | 171 | | |
| |||
186 | 201 | | |
187 | 202 | | |
188 | 203 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 204 | + | |
| 205 | + | |
196 | 206 | | |
197 | 207 | | |
198 | 208 | | |
| |||
0 commit comments