Commit 0ccd44c
committed
Fix RFC 8414 metadata URL construction and add asMetadataUrl validation in callback
- buildMetadataUrls: insert .well-known/oauth-authorization-server between
origin and path per RFC 8414 §3, instead of appending to the end. Fixes
discovery for path-based issuers (e.g. multi-tenant Azure AD, Auth0).
- Callback route: add !cached.asMetadataUrl to the validation guard,
consistent with tryRefreshAfterInvalidToken in the probe route.1 parent 5da08f9 commit 0ccd44c
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
265 | 269 | | |
266 | | - | |
267 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
268 | 273 | | |
269 | 274 | | |
270 | 275 | | |
| |||
0 commit comments