Commit d6e7a84
feat(auth): add "Sign in with SSO" entry to LoginForm (#2000)
Adds an SSO sign-in button to the login page that routes the entered email
to its configured IdP (better-auth @better-auth/sso, by email domain) via
POST /api/v1/auth/sign-in/sso and redirects to the provider's authorization
endpoint. i18n label (labels.ssoButton); inline error when no provider
matches the domain.
UI half (PR-2) of the per-env external-IdP SSO mechanism; backend lands in
framework #2322, design in ADR-0024. Verified end-to-end in a browser:
button -> IdP login -> consent -> JIT federated session.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent d23db5c commit d6e7a84
1 file changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
150 | 180 | | |
151 | 181 | | |
152 | 182 | | |
| |||
215 | 245 | | |
216 | 246 | | |
217 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
218 | 257 | | |
219 | 258 | | |
220 | 259 | | |
| |||
0 commit comments