You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an exception when trying to download content using the Bintray client: No credentials for preemptive authentication
I debugged to the line HttpClientConfigurator:292. It appears that it does not recognize credentials for the site: https://d29vzk4ow07wi7.cloudfront.net.
Update
3 problems I ran into:
HTTP Client 4.4 does not handle the SSL Certificate from cloudfront properly. This issue. I needed to upgrade to 4.5.
The HttpClientConfigurator does not setup an AuthScope that covers the cloudfront domain name causing the credentials to not be set.
The BintrayImpl handles all HTTP responses and converts the stream to a String. In order to download I believe I need access to the original HTTP response to stream the data. See my workaround here.
The text was updated successfully, but these errors were encountered:
2 - My Gist shows the workaround. If you download the file in my Gist or any file from a private repo that should reproduce that issue. The function hack_cloudfront_issue adds the AuthScope for all domains.
3 - My Gist also shows my workaround that accesses the HTTP Response object directly to download content. BintrayDownloadSolution1 shows the workaround in use to download a file.
I get an exception when trying to download content using the Bintray client:
No credentials for preemptive authentication
I debugged to the line
HttpClientConfigurator:292
. It appears that it does not recognize credentials for the site:https://d29vzk4ow07wi7.cloudfront.net
.Update
3 problems I ran into:
AuthScope
that covers the cloudfront domain name causing the credentials to not be set.The text was updated successfully, but these errors were encountered: