mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:03:31 +03:00
sasl: make login option string override http auth
- Use http authentication mechanisms as a default, not a preset. Consider http authentication options which are mapped to SASL options as a default (overriding the hardcoded default mask for the protocol) that is ignored if a login option string is given. Prior to this change, if some HTTP auth options were given, sasl mapped http authentication options to sasl ones but merged them with the login options. That caused problems with the cli tool that sets the http login option CURLAUTH_BEARER as a side-effect of --oauth2-bearer, because this flag maps to more than one sasl mechanisms and the latter cannot be cleared individually by the login options string. New test 992 checks this. Fixes https://github.com/curl/curl/issues/10259 Closes https://github.com/curl/curl/pull/12790
This commit is contained in:
parent
65c7e4f92b
commit
7b2d98dfad
3 changed files with 65 additions and 8 deletions
|
|
@ -125,7 +125,7 @@ test952 test953 test954 test955 test956 test957 test958 test959 test960 \
|
|||
test961 test962 test963 test964 test965 test966 test967 test968 test969 \
|
||||
test970 test971 test972 test973 test974 test975 test976 test977 test978 \
|
||||
test979 test980 test981 test982 test983 test984 test985 test986 test987 \
|
||||
test988 test989 test990 test991 \
|
||||
test988 test989 test990 test991 test992 \
|
||||
\
|
||||
test1000 test1001 test1002 test1003 test1004 test1005 test1006 test1007 \
|
||||
test1008 test1009 test1010 test1011 test1012 test1013 test1014 test1015 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue