Repository navigation
Commit 175ef28
authored
fix(auth): UserInfo accepts more than one space after Bearer (#591)
UserInfo refused `Authorization: Bearer <token>` with two spaces, though
RFC 9110 §11.4 (and RFC 6750 §2.1) let one or more spaces separate a
scheme from its credentials. Both SDKs already accept it.
`AuthScheme::credentials` now drops every space after the scheme, so
both of its callers accept them: UserInfo's `Bearer`, and the token
endpoint's `Basic` client authentication. The scheme name is still
case-insensitive, and the credentials are otherwise untouched.
Closes #558
> [!NOTE]
> Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus
5.5 (via T3 Code)1 parent 348186e commit 175ef28
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
165 | 172 | | |
166 | 173 | | |
167 | 174 | | |
| |||
0 commit comments