Commit e8f42d6
committed
fix: preserve client_metadata.scope if already set
Don't override the scope if it was explicitly set by the client.
This allows clients to:
- Request fewer permissions than available
- Work with servers that reject requests for unauthorized scopes
The scope selection strategy now only applies when scope is None.
Fixes #23171 parent 92c693b commit e8f42d6
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| |||
0 commit comments