| Summary: | [Curl] An authentication dialog is displayed during Bearer authentication | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kenji Shukuwa <kenji.shukuwa> |
| Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | Hironori.Fujii, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Kenji Shukuwa
2023-06-16 00:47:08 PDT
For Bearer authentication, the return value of CURLINFO_HTTPAUTH_AVAIL is set to CURLAUTH_BEARER. https://github.com/WebKit/WebKit/blob/b93c2f660b513827e45e83defda701f510c7f3ba/Source/WebCore/platform/network/curl/CurlRequest.cpp#L323-L324 --- if (auto auth = m_curlHandle->getHttpAuthAvail()) m_response.availableHttpAuth = *auth; // <== CURLAUTH_BEARER --- And if the status code was 401 and availableHttpAuth had a value, the authentication challenge was processed, so the authentication dialog was displayed. https://github.com/WebKit/WebKit/blob/b93c2f660b513827e45e83defda701f510c7f3ba/Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.cpp#L176-L177 --- if (m_response.isUnauthorized() && receivedResponse.availableHttpAuth) { tryHttpAuthentication(AuthenticationChallenge(receivedResponse, m_authFailureCount, m_response)); --- Pull request: https://github.com/WebKit/WebKit/pull/15042 Committed 265290@main (10330490fe57): <https://commits.webkit.org/265290@main> Reviewed commits have been landed. Closing PR #15042 and removing active labels. |