Commit a4bc090
committed
Fix parsing of Basic HTTP Authentication Scheme on the OP side
- URL-encoding and decoding is not part of the Basic HTTP Authentication Scheme.
- The user-id is not allowed to contain colons (`:`).
- The password is allowed to contain colons (`:`).
Quoting https://www.rfc-editor.org/rfc/rfc7617.html
> To receive authorization, the client
> [...]
> 2. constructs the user-pass by concatenating the user-id, a single
> colon (":") character, and the password,
> [...]
>
> Furthermore, a user-id containing a colon character is invalid, as
> the first colon in a user-pass string separates user-id and password
> from one another; text after the first colon is part of the password.
> User-ids containing colons cannot be encoded in user-pass strings.
Signed-off-by: Ivan Kanakarakis <[email protected]>1 parent 7e50501 commit a4bc090
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 107 | + | |
| 108 | + | |
111 | 109 | | |
112 | 110 | | |
| 111 | + | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments